source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: It seems that __STDC_ISO_10646__ isn't defined even where it can
@ 2011-05-19 15:48 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-05-19 15:48 UTC (permalink / raw)
  To: source

Log Message:
-----------
It seems that __STDC_ISO_10646__ isn't defined even where it can be
defined, so remove the check for it and leave it up to people compiling
the software (DOWNSTREAM) to take care of this.  This will eventually
need to be fixed up with a proper non-10646 converter and so on, but
this is a simple start.  While here, strengthen then language in the
Makefile to this effect.

Modified Files:
--------------
    mdocml:
        Makefile
        term_ascii.c

Revision Data
-------------
Index: term_ascii.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/term_ascii.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -Lterm_ascii.c -Lterm_ascii.c -u -p -r1.15 -r1.16
--- term_ascii.c
+++ term_ascii.c
@@ -37,8 +37,15 @@
 #include "term.h"
 #include "main.h"
 
+/* 
+ * Sadly, this doesn't seem to be defined on systems even when they
+ * support it.  For the time being, remove it and let those compiling
+ * the software decide for themselves what to use.
+ */
+#if 0
 #if ! defined(__STDC_ISO_10646__)
 # undef USE_WCHAR
+#endif
 #endif
 
 static	struct termp	 *ascii_init(enum termenc, char *);
Index: Makefile
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/Makefile,v
retrieving revision 1.340
retrieving revision 1.341
diff -LMakefile -LMakefile -u -p -r1.340 -r1.341
--- Makefile
+++ Makefile
@@ -13,9 +13,11 @@
 
 VERSION		 = 1.11.2
 VDATE		 = 12 May 2011
-# If your system doesn't support multi-byte functions (specifically
-# setlocale(), wcwidth(), putwchar()), then remove -DUSE_WCHAR.  You'll
-# still be able to use -Tlocale, but it becomes a synonym for -Tascii.
+# IFF your system supports multi-byte functions (setlocale(), wcwidth(),
+# putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a
+# UCS-4 value) should you define USE_WCHAR.  If you define it and your
+# system DOESN'T support this, -Tlocale will produce garbage.
+# If you don't define it, -Tlocale is a synonym for -Tacsii.
 CFLAGS		+= -g -DUSE_WCHAR -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\""
 CFLAGS     	+= -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
 PREFIX		 = /usr/local
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-19 15:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19 15:48 mdocml: It seems that __STDC_ISO_10646__ isn't defined even where it can kristaps

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 NNTP newsgroup(s).