[llvm-bugs] [Bug 30302] New: numpunt_byname and moneypunct_byname cannot represent multibyte decimal_point or thousands_sep.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 6 15:36:58 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30302

            Bug ID: 30302
           Summary: numpunt_byname and moneypunct_byname cannot represent
                    multibyte decimal_point or thousands_sep.
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eric at efcs.ca
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
    Classification: Unclassified

The virtual functions they use to return the separators only return a single
character. If the requested locale uses multibyte separators then these facets
have no way to represent those. For example ru_RU.UTF-8 uses \u00A0 as the
thousands_sep on glibc. Unfortunatly libc++ can only return the first byte of
that when the underlying char_type is 'char'. The first byte is 0xC2 which ends
up creating an invalid utf-8 string.

This probably requires a LWG issue and a fix in the standard.

See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16006

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160906/def449a7/attachment.html>


More information about the llvm-bugs mailing list