equal
deleted
inserted
replaced
893 This tests that translated help message is lower()-ed correctly. |
893 This tests that translated help message is lower()-ed correctly. |
894 |
894 |
895 $ LANGUAGE=ja |
895 $ LANGUAGE=ja |
896 $ export LANGUAGE |
896 $ export LANGUAGE |
897 |
897 |
898 $ hg commit -i --encoding cp932 2>&1 <<EOF | grep '^y - ' |
898 $ cat > $TESTTMP/escape.py <<EOF |
|
899 > from __future__ import absolute_import |
|
900 > import sys |
|
901 > def escape(c): |
|
902 > o = ord(c) |
|
903 > if o < 0x80: |
|
904 > return c |
|
905 > else: |
|
906 > return r'\x%02x' % o # escape char setting MSB |
|
907 > for l in sys.stdin: |
|
908 > sys.stdout.write(''.join(escape(c) for c in l)) |
|
909 > EOF |
|
910 |
|
911 $ hg commit -i --encoding cp932 2>&1 <<EOF | python $TESTTMP/escape.py | grep '^y - ' |
899 > ? |
912 > ? |
900 > q |
913 > q |
901 > EOF |
914 > EOF |
902 y - \x82\xb1\x82\xcc\x95\xcf\x8dX\x82\xf0\x8bL\x98^(yes) (esc) |
915 y - \x82\xb1\x82\xcc\x95\xcf\x8dX\x82\xf0\x8bL\x98^(yes) |
903 |
916 |
904 $ LANGUAGE= |
917 $ LANGUAGE= |
905 #endif |
918 #endif |
906 |
919 |
907 Skip |
920 Skip |