![]() ![]() If you want the paper size to be A4, where locale -k LC_PAPER outputs: height=297 You can see the list of available locales on your system with: locale -a In the C locale, every byte is a character but 0xc3 and 0xa9 are unknown ones as they are not in ASCII, so ls -q (and -q is enabled when the output goes to a terminal) renders them as ?. When setlocale() fails, the behaviour defaults to the C locale, where the character encoding is ASCII. a4 is not the name of a valid locale on your system and is causing setlocal(LC_ALL, "") to fail. All arguments to uxterm are passed to xterm without processing the -class and -u8 options should not be specified because they are used by the wrapper. Here, since it works with LC_ALL=en_US.UTF-8 which overrides all the other ones, the problem must be with LC_PAPER=a4. Here's excerpt from man uxterm: uxterm is a wrapper around the xterm (1) program that invokes the latter program with the UXTerm X resource class set. I installed Fluxbuntu in a 64mb ram virtual machine, and I get a strange error when I try to use the terminal: uxterm tried unsuccessfully to use locale. It's not about the $LC_ALL environment variable, locale is just reporting an error when the setlocale(LC_ALL, "") call it does to initialise localisation based on environment variables returns NULL indicating a locale configured via one of the various LC_*/LANG variables cannot be found. What that locale: Cannot set LC_ALL to default locale: No such file or directory message tells you is that one of the locales you're trying to use doesn't exist. The LC_PAPER=a4 variable prevents UTF-8 encoded Unicode characters from being printed (no pun intended) on screen! So it's correct UTF-8 (as far as I can tell).ĮDIT3 (after correct Answer): # unsetenv LC_PAPER In Arch Linux I would check whether locales are generated but I found nothing on the subject in openSUSE. However, I do NOT want to set LC_ALL to en_US.UTF-8 (or anything, really) because it messes up some other settings! It would be no fix but only a bad workaround for me.Īlso, why is LC_CTYPE ignored by /bin/ls and/or my shell when printing characters to the screen? Well, that's a nice LC_CTYPE for Unicode, I think! What does the error message say?įunnily enough, setting LC_ALL to the exact value of LC_CTYPE will work: # setenv LC_ALL en_US.UTF-8 Locale: Cannot set LC_ALL to default locale: No such file or directory Perhaps the locale for LC_CTYPE is not set to some UTF-8 value? # locale These actions can be mapped to mouse/key combinations using the translations resource. copy-selection (), hard-reset (), scroll-back (), etc. I have some file / folder names which are not 7-bit clean and they are not displayed correctly in my openSUSE system.Įxample for the folder /music/Gabriel_Fauré: # ls -1d /music/Gabriel_Faur? xterm defines a whole suite of 'actions' for manipulating the terminal e.g. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |