This is the mail archive of the cygwin-patches@cygwin.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: generating /etc/passwd and /etc/group for domians with users with cyrillic names


On Mon, Apr 09, 2001 at 10:39:21PM +0400, egor duda wrote:
> Hi!
> 
>   currently, mkpasswd and mkgroup print garbage if user name or group
> name contains cyrillic symbols. attached patch fixes that.

Hi Egor,

I'm somewhat surprised about that patch and pretty curious.
I had a look into the patch and basically it changes two
things:

- calling WideCharToMultiByte instead of wcstombs
- drops using wcslen.

Why is that needed? What is the problem with the original functions?

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


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