[LLVMbugs] [Bug 8454] New: Clang writes ObjC string literals as UTF-16 if they contain UTF-8 characters

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Oct 24 16:18:31 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=8454

           Summary: Clang writes ObjC string literals as UTF-16 if they
                    contain UTF-8 characters
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: js-llvm-bugzilla at webkeks.org
                CC: llvmbugs at cs.uiuc.edu


When using @"a", Clang outputs an ASCII a in the .s file. If however an UTF-8
encoded @"รค" is used, Clang translates this to UTF-16 and writes it in UTF-16
into the .s file. However, there is NO way of detecting the encoding of the
string. You have to guess whether Clang used UTF-16 or ASCII.

The expected behaviour would be that Clang writes the string into the .s file
just the way it was in the source file.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list