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

            Bug ID: 31497
           Summary: ctype_byname<Char>::do_widen widens invalid characters
                    to WEOF.
           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

Currently ctype_byname<wchar_t>::do_widen(char) widens invalid characters to
WEOF. This is probably the incorrect behavior, even if libstdc++ also does it.
Instead do_widen should return the original value when btowc returns WEOF.

-- 
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