This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


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

Re: __STDC_ISO_10646__ missing in glibc-2.1.91


>>>>> Markus Kuhn writes:

 > ISO/IEC 9989:1999 says in section 6.10.8 (Predefined macro names)
 >        __STDC_ISO_10646__ An integer constant of the  form  yyyymmL
 >                 (for  example,  199712L), intended to indicate that
 >                 values   of   type   wchar_t    are    the    coded
 >                 representations   of   the  characters  defined  by
 >                 ISO/IEC 10646,  along  with  all   amendments   and
 >                 technical  corrigenda  as of the specified year and
 >                 month.

 > This constant obviously has to be defined with glibc 2.2, where wchar_t
 > is intended to hold only ISO 10646 values.

 > I couldn't find that string anywhere in glibc-2.1.91.tar. Since it is a
 > locale issue, I guess this should be defined by the C library rather
 > than the compiler (but then that might conflict with the requirement
 > that it is defined before any #include ...). How will this be handled?

 > If the locale tables are based on Unicode 3.0, then

 >   __STDC_ISO_10646__ > 200000L

 > should hold. The editor of the standard Michael Everson <everson@egt.ie>
 > should be asked, what the actual publication month of ISO/IEC
 > 10646-1:2000 printed on the cover of the standard will be to find the
 > correct value of __STDC_ISO_10646__ for glibc 2.2, but something like
 > 200005L should do for the alpha test.

Uli, did you ask Michael Everson?  For now I propose to add January 2000.

Ok, to commit?  Or shall I contact Michael first?

Andreas

2000-08-12  Andreas Jaeger  <aj@suse.de>

	* include/features.h (__STDC_ISO_10646__): Define.
	Reported by Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>.

============================================================
Index: include/features.h
--- include/features.h	2000/08/01 21:54:02	1.19
+++ include/features.h	2000/08/12 14:02:28
@@ -240,6 +240,9 @@
 #define __STDC_IEC_559__		1
 #define __STDC_IEC_559_COMPLEX__	1
 
+/* wchar_t uses Unicode 3.0.  */
+#define __STDC_ISO_10646__		200001
+
 /* This macro indicates that the installed library is the GNU C Library.
    For historic reasons the value now is 6 and this will stay from now
    on.  The use of this variable is deprecated.  Use __GLIBC__ and

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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