git: gcc50: Change c++ locale handling
John Marino
marino at crater.dragonflybsd.org
Sat Jul 18 15:30:23 PDT 2015
commit 75978a60ac0c368617f1b03b972f9480660cc282
Author: John Marino <draco at marino.st>
Date: Sun Jul 19 00:22:03 2015 +0200
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.
Summary of changes:
contrib/gcc-5.0/README.DRAGONFLY | 1 +
.../config/locale/dragonfly/c_locale.cc | 67 +++++++++-------------
2 files changed, 27 insertions(+), 41 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/75978a60ac0c368617f1b03b972f9480660cc282
--
DragonFly BSD source repository
More information about the Commits
mailing list