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: unassignedclangb...@nondot.org
          Reporter: e...@efcs.ca
                CC: llvm-bugs@lists.llvm.org, mclow.li...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to