diff options
author | William M. Brack <wbrack@src.gnome.org> | 2003-11-28 09:39:10 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2003-11-28 09:39:10 +0000 |
commit | f9415e4989914e24188e4644f39bdc41bf25f7f3 (patch) | |
tree | 891bfbd76964862953636b22e29fc12080ad14f1 /result | |
parent | ae8c9642d80649d82045702855a3a4b9f6540e23 (diff) | |
download | libxml2-f9415e4989914e24188e4644f39bdc41bf25f7f3.tar.gz |
Enhanced the handling of UTF-16, UTF-16LE and UTF-16BE encodings. Now
* encoding.c, include/libxml/encoding.h: Enhanced the handling of UTF-16,
UTF-16LE and UTF-16BE encodings. Now UTF-16 output is handled internally
by default, with proper BOM and UTF-16LE encoding. Native UTF-16LE and
UTF-16BE encoding will not generate a BOM on output, and will be
automatically recognized on input.
* test/utf16lebom.xml, test/utf16bebom.xml, result/utf16?ebom*: added
regression tests for above.
Diffstat (limited to 'result')
-rw-r--r-- | result/noent/utf16bebom.xml | bin | 0 -> 344 bytes | |||
-rw-r--r-- | result/noent/utf16lebom.xml | bin | 0 -> 344 bytes | |||
-rw-r--r-- | result/utf16bebom.xml | bin | 0 -> 344 bytes | |||
-rw-r--r-- | result/utf16bebom.xml.rdr | 4 | ||||
-rw-r--r-- | result/utf16bebom.xml.sax | 8 | ||||
-rw-r--r-- | result/utf16lebom.xml | bin | 0 -> 344 bytes | |||
-rw-r--r-- | result/utf16lebom.xml.rdr | 4 | ||||
-rw-r--r-- | result/utf16lebom.xml.sax | 8 |
8 files changed, 24 insertions, 0 deletions
diff --git a/result/noent/utf16bebom.xml b/result/noent/utf16bebom.xml Binary files differnew file mode 100644 index 00000000..3b5466d1 --- /dev/null +++ b/result/noent/utf16bebom.xml diff --git a/result/noent/utf16lebom.xml b/result/noent/utf16lebom.xml Binary files differnew file mode 100644 index 00000000..933640cd --- /dev/null +++ b/result/noent/utf16lebom.xml diff --git a/result/utf16bebom.xml b/result/utf16bebom.xml Binary files differnew file mode 100644 index 00000000..3b5466d1 --- /dev/null +++ b/result/utf16bebom.xml diff --git a/result/utf16bebom.xml.rdr b/result/utf16bebom.xml.rdr new file mode 100644 index 00000000..f69338a8 --- /dev/null +++ b/result/utf16bebom.xml.rdr @@ -0,0 +1,4 @@ +0 8 #comment 0 1 This file is encoded in UTF-16BE +0 1 repository 0 0 +1 1 namespace 1 0 +0 15 repository 0 0 diff --git a/result/utf16bebom.xml.sax b/result/utf16bebom.xml.sax new file mode 100644 index 00000000..5b74a6d5 --- /dev/null +++ b/result/utf16bebom.xml.sax @@ -0,0 +1,8 @@ +SAX.setDocumentLocator() +SAX.startDocument() +SAX.comment( This file is encoded in UTF-16BE ) +SAX.startElement(repository, repositroy_id='test') +SAX.startElement(namespace, name='test') +SAX.endElement(namespace) +SAX.endElement(repository) +SAX.endDocument() diff --git a/result/utf16lebom.xml b/result/utf16lebom.xml Binary files differnew file mode 100644 index 00000000..933640cd --- /dev/null +++ b/result/utf16lebom.xml diff --git a/result/utf16lebom.xml.rdr b/result/utf16lebom.xml.rdr new file mode 100644 index 00000000..32a91e4f --- /dev/null +++ b/result/utf16lebom.xml.rdr @@ -0,0 +1,4 @@ +0 8 #comment 0 1 This file is encoded in UTF-16LE +0 1 repository 0 0 +1 1 namespace 1 0 +0 15 repository 0 0 diff --git a/result/utf16lebom.xml.sax b/result/utf16lebom.xml.sax new file mode 100644 index 00000000..e699631e --- /dev/null +++ b/result/utf16lebom.xml.sax @@ -0,0 +1,8 @@ +SAX.setDocumentLocator() +SAX.startDocument() +SAX.comment( This file is encoded in UTF-16LE ) +SAX.startElement(repository, repositroy_id='test') +SAX.startElement(namespace, name='test') +SAX.endElement(namespace) +SAX.endElement(repository) +SAX.endDocument() |