public inbox for cygwin-developers@cygwin.com
 help / color / mirror / Atom feed
* Re: [newlib-cygwin] cygwin: Set __STDC_ISO_10646__ to Unicode 5.2 value
       [not found] <20170726095009.51498.qmail@sourceware.org>
@ 2017-07-26 17:05 ` Yaakov Selkowitz
  2017-07-26 18:59   ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Yaakov Selkowitz @ 2017-07-26 17:05 UTC (permalink / raw)
  To: cygwin-developers


[-- Attachment #1.1: Type: text/plain, Size: 1164 bytes --]

On 2017-07-26 04:50, Corinna Vinschen wrote:
> diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
> index 1f9271b..c9133af 100644
> --- a/newlib/libc/include/sys/features.h
> +++ b/newlib/libc/include/sys/features.h
> @@ -505,10 +505,9 @@ extern "C" {
>  /* #define _XOPEN_UNIX				    -1 */
>  #endif /* __XSI_VISIBLE */
>  
> -/* The value corresponds to UNICODE version 4.0, which is the version
> -   supported by XP.  Newlib supports 5.2 (2011) but so far Cygwin needs
> -   the MS conversions for double-byte charsets. */
> -#define __STDC_ISO_10646__ 200305L
> +/* The value corresponds to UNICODE version 5.2, which is the current
> +   state of newlib's wide char conversion functions. */
> +#define __STDC_ISO_10646__ 200910L

I have at least one case (glib) where I had to undefine this:

http://article.gmane.org/gmane.os.cygwin.ports.general/1330

Is this just a bad assumption of the following glib code:

https://git.gnome.org/browse/glib/tree/glib/gunicollate.c

or does __STDC_ISO_10646__ really imply a 32-bit wchar_t, in which case
we shouldn't be defining it at all?

-- 
Yaakov


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 224 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [newlib-cygwin] cygwin: Set __STDC_ISO_10646__ to Unicode 5.2 value
  2017-07-26 17:05 ` [newlib-cygwin] cygwin: Set __STDC_ISO_10646__ to Unicode 5.2 value Yaakov Selkowitz
@ 2017-07-26 18:59   ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2017-07-26 18:59 UTC (permalink / raw)
  To: cygwin-developers

[-- Attachment #1: Type: text/plain, Size: 1569 bytes --]

On Jul 26 12:05, Yaakov Selkowitz wrote:
> On 2017-07-26 04:50, Corinna Vinschen wrote:
> > diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
> > index 1f9271b..c9133af 100644
> > --- a/newlib/libc/include/sys/features.h
> > +++ b/newlib/libc/include/sys/features.h
> > @@ -505,10 +505,9 @@ extern "C" {
> >  /* #define _XOPEN_UNIX				    -1 */
> >  #endif /* __XSI_VISIBLE */
> >  
> > -/* The value corresponds to UNICODE version 4.0, which is the version
> > -   supported by XP.  Newlib supports 5.2 (2011) but so far Cygwin needs
> > -   the MS conversions for double-byte charsets. */
> > -#define __STDC_ISO_10646__ 200305L
> > +/* The value corresponds to UNICODE version 5.2, which is the current
> > +   state of newlib's wide char conversion functions. */
> > +#define __STDC_ISO_10646__ 200910L
> 
> I have at least one case (glib) where I had to undefine this:
> 
> http://article.gmane.org/gmane.os.cygwin.ports.general/1330
> 
> Is this just a bad assumption of the following glib code:
> 
> https://git.gnome.org/browse/glib/tree/glib/gunicollate.c
> 
> or does __STDC_ISO_10646__ really imply a 32-bit wchar_t, in which case
> we shouldn't be defining it at all?

We had a discussion about this a couple of years back, and there's
a bit of disagreement.  Start here:
https://sourceware.org/ml/cygwin/2011-01/msg00401.html


Corinna

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-26 18:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20170726095009.51498.qmail@sourceware.org>
2017-07-26 17:05 ` [newlib-cygwin] cygwin: Set __STDC_ISO_10646__ to Unicode 5.2 value Yaakov Selkowitz
2017-07-26 18:59   ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).