LWN.net Logo

What about sorting UTF-8?

What about sorting UTF-8?

Posted Nov 8, 2005 9:31 UTC (Tue) by kleptog (subscriber, #1183)
Parent article: FreeBSD Project Launches FreeBSD 6.0

All I want to know is: does FreeBSD support collation for multibyte (eg UTF-8) locales yet? If not, wake me up when they have.

I'm on the PostgreSQL lists and have people come along wondering why when the use UTF-8 on FreeBSD or MacOS X, the sorting goes to hell. On Linux this has been sorted out for years.

What's the solution? Get PostgreSQL to abandons FreeBSDs locale support altogether. But seriously, you call yourself a serious OS but you can't sort UTF-8.


(Log in to post comments)

What about sorting UTF-8?

Posted Nov 12, 2005 3:25 UTC (Sat) by liljencrantz (subscriber, #28458) [Link]

Last time I checked (a few months ago, so this is probably still true) NetBSD didn't support wide-character string formating functions. *wprintf simply weren't implemented, and %ls and %lc didn't work in *printf, either. I guess the *BSD camp focus only aspire to work in a server environment serving only a single ASCII and ISO8859 locales, since pretty much any other situation means that unicode using UTF-8 and UCS-4 is vastly preferable.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds