etch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Marsh (Created) (JIRA)" <>
Subject [jira] [Created] (ETCH-177) Incorrect multibyte character encoding/handling
Date Tue, 27 Sep 2011 15:18:12 GMT
Incorrect multibyte character encoding/handling

                 Key: ETCH-177
             Project: Etch
          Issue Type: Bug
          Components: c-binding
         Environment: Experienced on Linux/ARM
            Reporter: Thomas Marsh
            Priority: Blocker

The Etch C binding relies on the compiler dependent wchar_t throughout to handle multibyte
strings. It makes incorrect assumptions about the encoding by relying on sizeof(wchar_t) in
etch_encoding_for_wchar(). This limits portability across compilers and results numerous issues
throughout the code. Within etch_encoding_transcode_wchar() there is a cast from wchar_t*
to char*, which does not work. (I'm not sure how it even works on any environment.) The correct
way to handle this is to convert the string with wcstombs().

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message