Bug 11071 - Unportable macro in iconv/lib/local.h
Summary: Unportable macro in iconv/lib/local.h
Status: NEW
Alias: None
Product: newlib
Classification: Unclassified
Component: libc (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Jeff Johnston
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-09 16:09 UTC by Jerker Bäck
Modified: 2009-12-09 19:42 UTC (History)
0 users

See Also:
Host: x86_64-unknown-interix6.1
Target: x86_64-unknown-cygwin
Build: x86_64-unknown-interix6.1
Last reconfirmed:


Attachments
Patch for ICONV_ZERO_MB_STATE_T macro (611 bytes, patch)
2009-12-09 16:12 UTC, Jerker Bäck
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jerker Bäck 2009-12-09 16:09:04 UTC
Unportable compiler issues:

The ICONV_ZERO_MB_STATE_T macro in iconv/lib/local.h seems to be GCC specific. 
There is also an unusual implementation in libc/iconv/lib/ucsconv.c to reset a 
mbstate_t data structure.
Comment 1 Jerker Bäck 2009-12-09 16:12:27 UTC
Created attachment 4452 [details]
Patch for ICONV_ZERO_MB_STATE_T macro

Here is a suggestion of a more general solution
Comment 2 Jeff Johnston 2009-12-09 19:42:37 UTC
As mentioned in your other bug, newlib maintainers don't use bugzilla for
bugs/patching.  It's all done on the mailing list.   Please submit your issues
and patches directly to the mailing list.  It would also help to mention what
compiler you are using for future reference.