Re: [COMMITTERS] How strings are sorted by LC_COLLATE specifically?
Re: [COMMITTERS] How strings are sorted by LC_COLLATE specifically?
От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Thu, Nov 25, 2010 at 1:40 AM, Chang Chao wrote: > How strings are sorted when LC_COLLATE = ja_JP.UTF-8. > I tried to read the documention on that,but there are just a few words, > like LC_COLLATE determines string sort order, > Is there a specific reference about this? > So I can implement an equivalent string sort function in JAVA. > because some of the sort logic is here. > Any clue will be greatly appreciated. As far as I know, we just inherit whatever behavior the operating system has for that collation. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
Re: [COMMITTERS] How strings are sorted by LC_COLLATE specifically?
От:
Chang Chao <charleschung.cn@gmail.com>
Дата:
Hi,Robert. Thanks for your reply. As far as I looked into postgre's source, I came to know that It seems that it uses strcoll to compare strings. So it depends on the underlying operating system,like you said. Charles.