[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-----
printf4.sub
Description: Text Data
unicode.c
Description: Text Data
- Fix u32toutf8 so it encodes values > 0xFFFF correctly., John Kearney, 2012/02/18
- Re: Fix u32toutf8 so it encodes values > 0xFFFF correctly., Chet Ramey, 2012/02/20
- Re: Fix u32toutf8 so it encodes values > 0xFFFF correctly., Eric Blake, 2012/02/21
- Re: Fix u32toutf8 so it encodes values > 0xFFFF correctly., John Kearney, 2012/02/21
- Re: Fix u32toutf8 so it encodes values > 0xFFFF correctly., Chet Ramey, 2012/02/21
- Initial test code for \U,
John Kearney <=
- Here is a diff of all the changed to the unicode, John Kearney, 2012/02/21
- Re: Initial test code for \U, Chet Ramey, 2012/02/22
- Re: Initial test code for \U, Eric Blake, 2012/02/22
- Re: Initial test code for \U, John Kearney, 2012/02/26
- Re: Fix u32toutf8 so it encodes values > 0xFFFF correctly., Linda Walsh, 2012/02/22
- Re: Fix u32toutf8 so it encodes values > 0xFFFF correctly., Eric Blake, 2012/02/22
- Re: Fix u32toutf8 so it encodes values > 0xFFFF correctly., John Kearney, 2012/02/22
- Re: Fix u32toutf8 so it encodes values > 0xFFFF correctly., Linda Walsh, 2012/02/22
- Re: Fix u32toutf8 so it encodes values > 0xFFFF correctly., Eric Blake, 2012/02/22
- Re: Fix u32toutf8 so it encodes values > 0xFFFF correctly., John Kearney, 2012/02/22