summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2008-11-18 13:54:08 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2008-11-18 13:54:08 +0000
commite205a6b1ba20fd24f9cb2b461095d45fc30e9009 (patch)
tree9ecb266c8289b9045f85daa854bfa7b2bf3eb710 /test
parent159fa67170c0edd5178c8c615f1b239728f02056 (diff)
downloadiconv-e205a6b1ba20fd24f9cb2b461095d45fc30e9009.tar.gz
iconv-e205a6b1ba20fd24f9cb2b461095d45fc30e9009.tar.bz2
Rather less hideous approach to error detection and input pointer maintenence.
We now simply decode one character at a time and check for error afterwards. This has the benefit of being less code, clearer, less likely to crash if encoding state changes involve memory (de)allocation, and removes the reliance on UnicodeLib internals. It's probably slower, however, but correctness is more important here. Fix ISO-2022-JP-2 test data to not include characters from the JIS X 0201-1976 Kana set -- this set is not used in ISO-2022-JP-2. Implement verbose flag in *Iconv. svn path=/trunk/iconv/; revision=5712
Diffstat (limited to 'test')
-rw-r--r--test/GNU/ISO-2022-JP-2-snippet2
-rw-r--r--test/GNU/ISO-2022-JP-2-snippet.UTF-82
2 files changed, 2 insertions, 2 deletions
diff --git a/test/GNU/ISO-2022-JP-2-snippet b/test/GNU/ISO-2022-JP-2-snippet
index 3e297b8..40fae83 100644
--- a/test/GNU/ISO-2022-JP-2-snippet
+++ b/test/GNU/ISO-2022-JP-2-snippet
@@ -1,4 +1,4 @@
-Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B, (I:]FAJ(B
+Japanese ($BF|K\8l(B) $B$3$s$K$A$O(B
JIS -- $B855$(B $B3+H/(B
Just for a test of JISX0212: $BqV$(DiQ(B (the second character is of JISX0212)
Chinese ($BCfJ8(B,$BIaDL$A;0(B,$A::So(B) $(D0_$B9%(B
diff --git a/test/GNU/ISO-2022-JP-2-snippet.UTF-8 b/test/GNU/ISO-2022-JP-2-snippet.UTF-8
index 6c63925..99d453b 100644
--- a/test/GNU/ISO-2022-JP-2-snippet.UTF-8
+++ b/test/GNU/ISO-2022-JP-2-snippet.UTF-8
@@ -1,4 +1,4 @@
-Japanese (日本語) こんにちは, コンニチハ
+Japanese (日本語) こんにちは
JIS -- 元気 開発
Just for a test of JISX0212: 騏驎 (the second character is of JISX0212)
Chinese (中文,普通话,汉语) 你好