[llvm-bugs] [Bug 31497] New: ctype_byname<Char>::do_widen widens invalid characters to WEOF.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 30 01:22:26 PST 2016


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: unassignedclangbugs at nondot.org
          Reporter: eric at efcs.ca
                CC: llvm-bugs at lists.llvm.org, mclow.lists at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161230/1c4c60d4/attachment.html>


More information about the llvm-bugs mailing list