vangyzen updated this revision to Diff 79322.
vangyzen added a comment.
Handle multibyte thousands_sep; do not reference possibly stale locale data
https://reviews.llvm.org/D26979
Files:
projects/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/grouping.pa
vangyzen added a comment.
I'm glad you mentioned a multibyte thousands_sep, because it //is// multibyte
in fr_FR.UTF-8 on FreeBSD 11. Specifically, it's a no-break space (U+00A0).
https://reviews.llvm.org/D26979
___
cfe-commits mailing list
cfe-co
vangyzen added inline comments.
Comment at:
projects/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/grouping.pass.cpp:42
+assert(std::setlocale(LC_NUMERIC, LOCALE_en_US_UTF_8) != NULL);
+char *expected = strdup(std::localecon
vangyzen created this revision.
vangyzen added a subscriber: cfe-commits.
Herald added a subscriber: emaste.
Herald added a reviewer: EricWF.
numpunct_byname assumed that decimal_point and thousands_sep
were ASCII and simply copied the first byte from them. Add support
for multibyte strings in th
vangyzen added inline comments.
Comment at:
projects/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp:79
const std::numpunct& np = std::use_facet >(l);
-assert(np.thousands_sep() == L',');
+
vangyzen added a comment.
A unit test change in https://reviews.llvm.org/D26979 found this and will
continue to test it (on some OSes).
https://reviews.llvm.org/D27167
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cg
vangyzen updated this revision to Diff 79625.
vangyzen added a comment.
Herald added a subscriber: emaste.
Restore support for a sign character preceding a "nan"
I accidentally broke +nan and -nan. Add unit test cases for these,
and update my change to support them.
https://reviews.llvm.org/D2
vangyzen added a comment.
@EricWF Do you have time and interest to review this again?
https://reviews.llvm.org/D26979
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vangyzen added a comment.
> @EricWF Do you have time and interest to review this again?
I should ask, do you have time and interest to //commit// this?
https://reviews.llvm.org/D26979
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://l
vangyzen added inline comments.
Comment at: src/locale.cpp:4339
if (loc == nullptr)
__throw_runtime_error("numpunct_byname::numpunct_byname"
" failed to construct for " + string(nm));
While you're here, you m
vangyzen abandoned this revision.
vangyzen added a comment.
I'm abandoning this revision because https://reviews.llvm.org/D24218 is clearly
superior.
https://reviews.llvm.org/D27167
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lis
11 matches
Mail list logo