[PATCH] [libc++] Support Newlib as libc++'s C library [locale part 2]

Jonathan Roelofs jonathan at codesourcery.com
Fri Sep 19 14:04:48 PDT 2014


Hi jfb, danalbert,

Give newlocale/freelocale/duplocale/uselocale something closer to how the real ones would behave, fixing failures like:

```
terminating with uncaught exception of type std::runtime_error: collate_byname<char>::collate_byname failed to construct for C
```
in tests like:

```
localization/locales/locale/locale.statics/classic.pass.cpp
```

http://reviews.llvm.org/D5418

Files:
  include/support/newlib/xlocale.h
  src/support/newlib/xlocale.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5418.13890.patch
Type: text/x-patch
Size: 2678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140919/d5c47f66/attachment.bin>


More information about the cfe-commits mailing list