So far, DragonFly only handles the C/POSIX locale through the "generic" locale support files, similar to FreeBSD and Darwin. The following patchset enables nearly complete support for named locales. The except is for std:messages which requires gettext support in libc which is not present in any *BSD. For that category, I have left generic support in place at Jonathan's recommendation. The support was made by talking the GNU version and adapting it to work on DragonFly. Testing has shown these patches to be working. A "before" test results: https://gcc.gnu.org/ml/gcc-testresults/2015-07/msg01678.html PASS: 9883 FAIL: 89 XSUCC: 1 XFAIL: 66 UNSUP: 465 The most recent test: https://gcc.gnu.org/ml/gcc-testresults/2015-07/msg03024.html PASS: 10074 FAIL: 32 XFAIL: 68 UNSUP: 401 For full disclosure, a number of improvements were made to the OS in the area of locales, such as DragonFly being the first BSD to acquire full collation support. Most of the remaining failures are due to differences in locale definitions between linux and DragonFly (DragonFly now uses CLDR POSIX definitions, v2.0.1 currently) Attachments: 1. combined diff 2. diff between gnu and dragonfly version (FYI) 3. Suggested Changelog entry This work should be highly interesting for FreeBSD and perhaps darwin as well. FreeBSD may be able to switch to it directly without any required modifications, but of course that must be tested. There is no risk to approving this patchset because it affects only DragonFly. Please consider approving this for incorporating into trunk (also recall that my FSF copyright assignment is filed and in order.) Regards, John