bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Initial test code for \U


From: John Kearney
Subject: Initial test code for \U
Date: Tue, 21 Feb 2012 23:07:05 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20120129 Thunderbird/10.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Initial code for testing \u functionality.
basically uses arrays that look like this
jp_JP_SHIFT_JIS=(
  #Unicode="expected bmstring"
  [0x0001]=$'\x01' #  START OF HEADING
  [0x0002]=$'\x02' #  START OF TEXT
...
)
TestCodePage ja_JP.SHIFT_JIS jp_JP_SHIFT_JIS

in error output looks like this
Error Encoding U+000000FB to C.UTF-8 [ "$'\303\273'" != "$'\373'" ]
Error Encoding U+000000FC to C.UTF-8 [ "$'\303\274'" != "$'\374'" ]
Error Encoding U+000000FD to C.UTF-8 [ "$'\303\275'" != "$'\375'" ]
Error Encoding U+000000FE to C.UTF-8 [ "$'\303\276'" != "$'\376'" ]
Error Encoding U+000000FF to C.UTF-8 [ "$'\303\277'" != "$'\377'" ]
Failed 128 of 1378 Unicode tests

or if its all ok like this
Passed all 1378 Unicode tests


should make it relatively easy to verify functionality on different
targets etc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPRBWIAAoJEKUDtR0WmS05WigH/1iXidormw3aj+bBJZDEYv33
BL98n1irF4C9ZNNPc95UfPvDjqVUhpQrWx+/Pa6BH9m9zSd5cSqZ7xmgUH9mzg2p
JkqbiTzg0+lb714BBopTyZMRajqXMrQGx5nJTzOwuMNhs7cgrHPtPdOUrkcB0OJ2
UR5e0T1MWx8RR6lOgkXu0Gt3nQqYtnes+8y8fGGbbHfFrxJMaOjegjdN87+Q6N0U
Cl0uVH9JT8V6IEU1Q4EddjuuqyBr1c8soXd9XjeCPXVdc3XSJ5b/XB8Sdh7uW8FW
x3UbaNrhaReX8XF0xHMoPvIJQFmQE469RpXERWmZzWpGnXrXCvEpxmVQXK2CWhY=
=Cm29
-----END PGP SIGNATURE-----

Attachment: printf4.sub
Description: Text Data

Attachment: unicode.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]