This is the mail archive of the cygwin-developers 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]
Other format: [Raw text]

Re: wprintf anybody?


On Apr 12 01:58, Kazuhiro Fujieda wrote:
> >>> On Fri, 11 Apr 2008 16:21:58 +0200
> >>> Corinna Vinschen said:
> 
> > My lack of NLS knowledge shows again:  Would your implementation
> > be sufficent for a str/wcscoll, str/wcsxfrm implementation?
> 
> Yes, all right. But I implemented only strcoll and strxfrm.
> I believe I can implement wcs versions with the same manner.

Cool.  I guess we could use the same approach as FreeBSD:

  int wcscoll()
  {
    if (FAILS(wcstombs())
      wcscmp();
    else
      strcoll();
  }

Analogous for wcsxfrm.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat


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