This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Wide character support?
- From: "Artem B. Bityuckiy" <dedekind at yandex dot ru>
- To: Beman Dawes <bdawes at acm dot org>
- Cc: newlib at sources dot redhat dot com
- Date: Sat, 28 May 2005 12:41:22 +0400
- Subject: Re: Wide character support?
- References: <d77qhp$uri$1@sea.gmane.org>
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.