Mailing List Archive


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

[tlug] Re: Weird sorting of japanese filenames



Stephen J. Turnbull wrote:
> Tobias Diedrich writes:
> 
>  > I was wondering if someone here could explain to me why ls and sort
>  > consider 'くじびきアンバランス' and 'ネギま!?' to be same 'same'
>  > as far as sorting order is concerned?
> 
> They more or less seem to be ignoring the Japanese.  It's not
> guaranteed, but you would expect that hiragana, katakana, and kanji
> would each be sorted into separate blocks.  Nor is it related to
> 50-on-jun.
> 
> Try "LANG=ja_JP ls" and see if you get a saner result.

Indeed "LC_COLLATE=ja_JP.UTF-8 ls" does help. I wonder why I didn't
think of trying that myself...
I just expected that with utf-8 sorting decisions would only marginally
differ between locales...

Thanks,

-- 
Tobias						PGP: http://9ac7e0bc.uguu.de
このメールは十割再利用されたビットで作られています。


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links