This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib 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]

Re: Wide character support?


Hello,

Beman Dawes wrote:
I'd like to be able to use the C++ standard library std::wstring with Cygwin.

What would be involved in adding wide character support to newlib? In a cgywin mailing list posting Christopher Faylor indicated that this is what is needed.

2 years ago I worked on this issue. You need NLS support in Newlib to make use of C++ wstring stuff.


What I did:
1. Ported the Iconv library to Newlib. Iconv is the heart of NLS. It is currently in Newlib CVS. Perhaps, it isn't ideal, but it worked.
2. Implemented mblen() and friends.
3. Implemented wc<->mb convertion functions (mbtowc(), mbstowcs(), etc).
4. Added full wide-char support to vscanf()/vprintf() serites (%S, etc).


2,3,4 is not in the Newlib repositiry. But it worked quite stably AFAIR.

I'm not involved in the area anymore and I have no energy to complete the work, sorry. I may share what I've done with you if you wish to implement the NLS stuff for Newlib.

--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.


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