On 12-19-2012 03:48,
bi...@MIX.COM wrote:
> You might want to start by defining LANG = en_CA.UTF-8 or maybe fr_CA.UTF-8
> on your local machine. locale -a will give you a list of available choices.
> xterm may have something to set as well, I don't use it so I don't know.
I have all of my locales set to en-US.UTF-8 and Terminal's default also
set to UTF-8 Most of the time it works pretty well. There are programs
that feel obligated to use octal for ALL non-ASCII characters. And
there is an occasional odd inconsistency, such as:
iMac:~ wgroleau$ touch X=㌳䑄啕∢晦睷袈香ꪪ==X
iMac:~ wgroleau$ ls X*
X=㌳䑄啕∢晦睷袈香?==X
iMac:~ wgroleau$ ls -lat | head -6
total 4133344
drwxr-x--- 732 wgroleau staff 24888 Dec 19 22:39 .
-rw-r--r-- 1 wgroleau staff 72 Dec 19 22:39 .signature
drwx------ 15 wgroleau staff 510 Dec 19 22:37 .dropbox
-rw-r--r-- 1 wgroleau staff 0 Dec 19 22:37 X=㌳䑄啕∢晦睷袈香ꪪ==X
drwx------ 2 wgroleau staff 68 Dec 19 22:07 .Trash
If you don't see at least one Chinese character there, YOUR newsreader
doesn't honor UTF-8 encoding headers.
There was only ONE equal sign at each end. What was before it was
U+AAAA which is apparently not available on my Mac (you can see what it
looks like on <
http://www.unicode.org/charts/PDF/UAA80.pdf>.
Before that was U+9999 or 香
In Terminal, the 'ls -lat' did not have the extra equal sign, and for
the low vo, it had the glyph meaning HUH?!?
I find it interesting that 'ls' _ass_umed_ that Terminal couldn't handle
it and replaced it with ?= but when piped, left it alone and 'head'
displayed it the same as the shell (and pasting it into Thunderbird
changed the single glyph into a different one and an equal sign!)
--
Wes Groleau
“Statistics are like bikinis.
What they reveal is suggestive,
but what they conceal is vital.”
— Aaron Levenstein