This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug localedata/714] New: mbrtowc() returns -2 for 3-byte EUC-JP and 4-byte EUC-TW characters


When I call mbrtowc() one byte at a time for 3-byte EUC-JP sequences (JIS X
0212) or 4-byte EUC-TW sequences, it always returns -2, even when the character
is complete. If I call mbrtowc() with all the bytes at once, then it returns the
correct value.

I will attach an example program.

-- 
           Summary: mbrtowc() returns -2 for 3-byte EUC-JP and 4-byte EUC-TW
                    characters
           Product: glibc
           Version: 2.3.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: localedata
        AssignedTo: pere at hungry dot com
        ReportedBy: futhark at users dot sourceforge dot net
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=714

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]