generating /etc/passwd and /etc/group for domians with users with cyrillic names

Corinna Vinschen cygwin-patches@cygwin.com
Tue Apr 10 09:46:00 GMT 2001


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.



More information about the Cygwin-patches mailing list