Bug #223

libc needs multibyte locale support for collation

Added by Garrett D'Amore over 7 years ago. Updated over 7 years ago.

Status:ResolvedStart date:2010-09-17
Priority:HighDue date:
Assignee:Garrett D'Amore% Done:


Category:-Estimated time:8.00 hours
Target version:-
Difficulty: Tags:


So multibyte locales (like UTF-8) require additional support for collating that is missing from libc.


#1 Updated by Garrett D'Amore over 7 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 90

So I've done quite a bit of work to implement this... I worked from code which Apple released to do much of this at opensource.apple.com (notably without even adding an Apple copyright notice!), and did a lot of hacking on my own (particularly in the lex and yacc grammars that used to build the databases.

This work includes a lot of support in libc that may ultimately be useful for the work involving localedef per POSIX, which includes additional supported features (e.g. for languages which change the sort order based on sequences at the end of the string rather than the beginning! Go figure!)

However, I have not attempted to support the localedef syntax, or those features, in the mkcollate utility. Ultimately, that project will come later.

#2 Updated by Garrett D'Amore over 7 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 90 to 100

This is now fixed.

Also available in: Atom