This is the mail archive of the
cygwin-patches@sources.redhat.com
mailing list for the Cygwin project.
Re: preliminary patch3 for i18n: eliminate calls to wcstombs.
- To: Chris Faylor <cgf at cygnus dot com>
- Subject: Re: preliminary patch3 for i18n: eliminate calls to wcstombs.
- From: Corinna Vinschen <vinschen at cygnus dot com>
- Date: Fri, 21 Jul 2000 22:27:14 +0200
- CC: cygwin-patches at sources dot redhat dot com
- References: <s1sn1jb45yi.fsf@jaist.ac.jp> <20000721155529.B26237@cygnus.com>
- Reply-To: cygpatch <cygwin-patches at sources dot redhat dot com>
Chris Faylor wrote:
>
> On Sat, Jul 22, 2000 at 04:51:49AM +0900, Kazuhiro Fujieda wrote:
> >The current implementation of wcstombs() can't convert a
> >wide-character string encoded by UNICODE to a correct multi-byte
> >string. So we should use WideCharToMultiByte instead of it.
>
> Hmm. I wonder if it wouldn't make sense to implement wcstombs using
> WideChartoMultiByte instead.
Yup.
However, using defines instead of the `magic' 256 is definitely a
good idea.
Corinna
--
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company