From: Teemu L. <tli...@ik...> - 2011-08-14 04:04:43
|
* 2011-08-13T10:48:45-07:00 * Don Geddis wrote: > I didn't have an $LC_CTYPE variable. But it turns out that, something > like ten years ago, I put the following in my .tcshrc: > setenv LC_ALL C > The associated comment says > # Fix the sort order of "ls" > Who knows what was happening at the time, and what kind of filename > sorting in "ls" I was seeing, and how I thought this would fix it. Glibc checks LC_ALL first and uses its value if it exists. If LC_ALL is empty then the appropriate LC_* (e.g., LC_CTYPE, LC_COLLATE) variable is inspected. If that is empty then LANG variable is inspected. > locale -k LC_CTYPE | grep charmap > now returns "UTF-8", sbcl correctly loads source files with such > encodings, etc. You can just type "locale charmap" to get the effective character encoding. |