Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] using eucjp on Linux



On Tue, Dec 24, 2013 at 01:22:08PM +0900, Kalin KOZHUHAROV wrote:
> 
> for l in utf8 eucjp sjis; do echo -e "$l\t $(LC_ALL=ja_JP.utf8 date
> +%A)"; LC_ALL=ja_JP.$l date +%A|xxd; echo; done
> utf8     火曜日
> 0000000: e781 abe6 9b9c e697 a50a                 ..........
> 
> eucjp     火曜日
> 0000000: b2d0 cdcb c6fc 0a                        .......
> 
> sjis     火曜日
> 0000000: 89ce 976a 93fa 0a                        ...j...
> 
> If you run it today (Tuesday), you may check this as well:
> $ for l in utf8 eucjp sjis; do echo -e "$l\t $(LC_ALL=ja_JP.utf8 date
> +%A)"; LC_ALL=ja_JP.$l date +%A|xxd; echo; done|md5sum -c <(echo
> "bc2ec6dc8e941801ee37286c8b28c277  -")
> -: OK
> (it should print OK, be careful with spaces).

Hm.. things work on debian stable as expected.
I guess its bugzilla time.

The following produces the same on Debian and Fedora:

for l in utf8 eucjp ; do 
        echo -e "$l\t $(LC_ALL=ja_JP.utf8 date +%A)"; 
        LC_ALL=ja_JP.$l date +%A|xxd; echo; 
done | md5sum -c <(echo "31f0f83e7fe3dacb7b288c101cd1debd  -")


cheers,
Christian


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links