gcc50: Change c++ locale handling
authorJohn Marino <draco@marino.st>
Sat, 18 Jul 2015 22:22:03 +0000 (00:22 +0200)
committerJohn Marino <draco@marino.st>
Sat, 18 Jul 2015 22:30:06 +0000 (00:30 +0200)
commit75978a60ac0c368617f1b03b972f9480660cc282
tree66049cdbf3b70c3f365202b5a8a3a5ac5db1f9e3
parent2ea1c995574ed795f4d06cf14670571078f90931
gcc50: Change c++ locale handling

The biggest change is removing the modification of the specified locale.
Before locales without extensions were appended with ".UTF-8" and
modifiers (e.g. @euro) were silently stripped off.

The latter is probably a bad idea, and even if we want to continue doing
this (modifiers are not supported), it should be done at the library
level, not at c++ on gcc level.  The no-extension problem has been solved
today by creating symlinks at /usr/share/locale.

The logic of the "gnu" support was mimicked by using newlocale, duplocale,
and freelocale.  The generic version uses setlocale only.  This patch will
be pushed upstream most likely.
contrib/gcc-5.0/README.DRAGONFLY
contrib/gcc-5.0/libstdc++-v3/config/locale/dragonfly/c_locale.cc