This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix libstdc++/7811


Hi all,

following up to some private exchanges with Roland McGrath I think I have a fix for the PR. Indeed, the below passes make check on x86-Linux (glibc2.2.5) and some additional tests.

I'm unsure about the following points: in case LC_ALL is not set is the fallback to LANG really needed (PR submitter implicitly expected this to be the case)? Also, if neither are set is always correct that "" -> "C"?

In case, ok for 3.2 too?

Ciao, Paolo.

////////////////////////////

2002-09-05 Paolo Carlini <pcarlini@unitus.it>
Roland McGrath <roland@redhat.com>

libstdc++/7811
* src/locale.cc (locale::locale(__s)): Use getenv instead
of setenv for the environment locale.
* testsuite/22_locale/ctor_copy_dtor.cc (test03): New.





Attachment: patch_7811
Description: application/java-vm


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]