aboutsummaryrefslogtreecommitdiff
path: root/dist/config
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-01-07 13:50:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-01-07 13:50:11 +0200
commit76d23e639004517db8f9469d64ac1789f8449365 (patch)
treedbafc8c4e31a97f74046c98af19d0fe76f360001 /dist/config
parentc30caae30bc64974eeaa1e81aa2abdc203f5120d (diff)
Add support for ISO-8859-1 as application encoding
New runtime configuration parameter, XSDE_ENCODING. New option, --char-encoding. New test, tests/cxx/hybrid/iso8859-1.
Diffstat (limited to 'dist/config')
-rw-r--r--dist/config/config.make18
-rw-r--r--dist/config/config.nmake14
2 files changed, 30 insertions, 2 deletions
diff --git a/dist/config/config.make b/dist/config/config.make
index ac3518c..fccb68f 100644
--- a/dist/config/config.make
+++ b/dist/config/config.make
@@ -37,12 +37,26 @@ XSDE_PLATFORM := posix
XSDE_ARCH_WIDTH := 32
-# Platform byte order. Valid values are 'b' for big-endian
-# and 'l' for little-endian.
+# Platform byte order. Valid values are 'b' for big-endian and 'l'
+# for little-endian.
#
XSDE_BYTEORDER := l
+# Application character encoding. Valid values are 'utf8' for UTF-8
+# and 'iso8859-1' for ISO-8859-1. Note that this encoding is not
+# the same as the XML document encoding that is being parsed or
+# serialized. Rather, it is the encoding that is used inside the
+# application. When an XML document is parsed, the character data
+# is automatically converted to the application encoding. Similarly,
+# when an XML document is serialized, the data in the application
+# encoding is automatically converted to the resulting document
+# encoding. Also don't forget to use the --char-encoding option
+# when compiling your schemas if using an encoding other than UTF-8.
+#
+XSDE_ENCODING := utf8
+
+
# Set to 'n' if you don't have STL (std::string, etc.). Also don't
# forget to use the --no-stl option when compiling your schemas.
#
diff --git a/dist/config/config.nmake b/dist/config/config.nmake
index 599d660..0e4008f 100644
--- a/dist/config/config.nmake
+++ b/dist/config/config.nmake
@@ -42,6 +42,20 @@ XSDE_ARCH_WIDTH = 32
XSDE_BYTEORDER = l
+# Application character encoding. Valid values are 'utf8' for UTF-8
+# and 'iso8859-1' for ISO-8859-1. Note that this encoding is not
+# the same as the XML document encoding that is being parsed or
+# serialized. Rather, it is the encoding that is used inside the
+# application. When an XML document is parsed, the character data
+# is automatically converted to the application encoding. Similarly,
+# when an XML document is serialized, the data in the application
+# encoding is automatically converted to the resulting document
+# encoding. Also don't forget to use the --char-encoding option
+# when compiling your schemas if using an encoding other than UTF-8.
+#
+XSDE_ENCODING = utf8
+
+
# Set to 'n' if you don't have STL (std::string, etc.). Also don't
# forget to use the --no-stl option when compiling your schemas.
#