Let me add: The reason why setting LC_CTYPE=pt_BR.UTF-8 works is the file /usr/share/X11/locale/pt_BR.UTF-8/Compose which belongs to the libx11-data package.
Let me add: The reason why setting LC_CTYPE= pt_BR.UTF- 8 works is the file /usr/share/ X11/locale/ pt_BR.UTF- 8/Compose which belongs to the libx11-data package.