This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


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

Re: preliminary patch3 for i18n: eliminate calls to wcstombs.


>>> On Sat, 22 Jul 2000 12:11:20 +0200
>>> Corinna Vinschen <vinschen@cygnus.com> said:

> I will use local macros `sys_wcstombs' and `sys_mbstowcs' for
> that because the calls to WideCharToBlurb and MultiByte... are
> somewhat complex.

I agree with you.

> If there's a need to use WideChar... and MultiByte...
> functions more often later, it might help to define those macros in
> winsup.h.

_link() in syscalls.cc uses MultiByteToWideChar now.  So I
believe we already have a chance to define them in winsup.h.

> I don't understand the HOMEDRIVE/HOMEPATH part of your patch.
> It seems wrong to me.

Yes, it is wrong. I didn't inspect values of USER_INFO_3
structure well, and failed to catch the intention of your code.

> That's the reason for my way to create a full path first and after
> that extracting the HOMEPATH - containing only the path component -
> and HOMEDRIVE - containing only the drive letter and the trailing
> colon.

I see.

> I have attached my variation of the patch. If nobody objects,
> I will check that in at least Sunday morning (CEST).

There is nothing to object to.
____
  | AIST      Kazuhiro Fujieda <fujieda@jaist.ac.jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

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