[glibc x gettext] Bad po files ?

Andreas Jaeger aj@suse.de
Thu Apr 19 11:49:00 GMT 2001


Bruno Haible <haible@ilog.fr> writes:

> Andreas Jaeger writes:
> > "Rodrigo Barbosa (aka morcego)" <rodrigob@conectiva.com.br> writes:
> 
> > > Looks like zh_TW.po is also buggy. The error follow, both from msgfmt and
> > > iconv:
> > > 
> > > $ msgfmt zh_TW.po -o zh_TW.gmo
> > > zh_TW.po:563: invalid control sequence
> > > zh_TW.po:564: end-of-line within string
> 
> This is a different issue: It's a PO file which has extraneous
> backslashes (in particular, after the chinese word "allowed").
> That particular ideograph has a second byte == 0x5C in the big5
> encoding. Such extraneous backslashes were needed with earlier
> (non-multibyte aware) versions of msgfmt.
> 
> The fix is to change 0x5C 0x5C into 0x5C in those lines where msgfmt
> complains.

Here's a patch.  Will this work with gettext 0.10.35 or do we require
0.10.36 now?

Shall I commit this?

Andreas

2001-04-19  Andreas Jaeger  <aj@suse.de>

	* po/zh_TW.po: Remove extraneous backslashes.

============================================================
Index: po/zh_TW.po
--- po/zh_TW.po	2000/08/28 07:56:32	1.1
+++ po/zh_TW.po	2001/04/19 18:47:24
@@ -560,12 +560,12 @@
 #: locale/programs/ld-collate.c:3792
 #, c-format
 msgid "%s: empty category description not allowed"
-msgstr "%s: ªÅ¥ÕªºÃþ§O´y­z¬O¤£¤¹³\\ªº"
+msgstr "%s: ªÅ¥ÕªºÃþ§O´y­z¬O¤£¤¹³\ªº"
 
 #: locale/programs/ld-collate.c:717
 #, c-format
 msgid "%s: empty weight string not allowed"
-msgstr "%s: ªÅ¥ÕªºÅv­«¦r¦ê¬O¤£¤¹³\\ªº"
+msgstr "%s: ªÅ¥ÕªºÅv­«¦r¦ê¬O¤£¤¹³\ªº"
 
 #: locale/programs/charmap.c:794
 #, c-format
@@ -742,12 +742,12 @@
 #: locale/programs/ld-ctype.c:2613
 #, c-format
 msgid "%s: only one `include' instruction allowed"
-msgstr "%s: ¥u¤¹³\\¤@­Ó `include' «ü¥O"
+msgstr "%s: ¥u¤¹³\¤@­Ó `include' «ü¥O"
 
 #: posix/getopt.c:714
 #, c-format
 msgid "%s: option `%c%s' doesn't allow an argument\n"
-msgstr "%s: ¿ï¶µ `%c%s' ¤£¤¹³\\ªþ¥[¤Þ¼Æ\n"
+msgstr "%s: ¿ï¶µ `%c%s' ¤£¤¹³\ªþ¥[¤Þ¼Æ\n"
 
 #: posix/getopt.c:684
 #, c-format
@@ -762,12 +762,12 @@
 #: posix/getopt.c:709
 #, c-format
 msgid "%s: option `--%s' doesn't allow an argument\n"
-msgstr "%s: ¿ï¶µ `--%s' ¤£¤¹³\\ªþ¥[¤Þ¼Æ\n"
+msgstr "%s: ¿ï¶µ `--%s' ¤£¤¹³\ªþ¥[¤Þ¼Æ\n"
 
 #: posix/getopt.c:889
 #, c-format
 msgid "%s: option `-W %s' doesn't allow an argument\n"
-msgstr "%s: ¿ï¶µ `-W %s' ¤£¤¹³\\ªþ¥[¤Þ¼Æ\n"
+msgstr "%s: ¿ï¶µ `-W %s' ¤£¤¹³\ªþ¥[¤Þ¼Æ\n"
 
 #: posix/getopt.c:871
 #, c-format
@@ -797,7 +797,7 @@
 #: sunrpc/rpc_main.c:288
 #, c-format
 msgid "%s: output would overwrite %s\n"
-msgstr "%s: ¿é¥X±N·|Âл\\ %s\n"
+msgstr "%s: ¿é¥X±N·|Âл\ %s\n"
 
 #: timezone/zic.c:874 timezone/zic.c:1288 timezone/zic.c:1313
 #, c-format
@@ -1629,7 +1629,7 @@
 
 #: elf/dl-open.c:106
 msgid "DST not allowed in SUID/SGID programs"
-msgstr "DST ¤£¤¹³\\¦b SUID/SGID ªºµ{¦¡¤¤"
+msgstr "DST ¤£¤¹³\¦b SUID/SGID ªºµ{¦¡¤¤"
 
 #: elf/dl-error.c:71
 msgid "DYNAMIC LINKER BUG!!!"
@@ -2040,7 +2040,7 @@
 #. TRANS install a new version of the C library or the operating system.
 #: stdio-common/../sysdeps/gnu/errlist.c:576
 msgid "Function not implemented"
-msgstr "¥\\¯à¨S¦³¹ê§@"
+msgstr "¥\¯à¨S¦³¹ê§@"
 
 #: nis/nis_print.c:115
 msgid "GROUP\n"
@@ -2630,7 +2630,7 @@
 #: stdio-common/../sysdeps/gnu/errlist.c:379
 #: stdio-common/../sysdeps/unix/sysv/sysv4/solaris2/sparc/errlist.c:157
 msgid "Network is down"
-msgstr "ºô¸ô°±Â\\"
+msgstr "ºô¸ô°±Â\"
 
 #. TRANS A socket operation failed because the subnet containing the remote host
 #. TRANS was unreachable.
@@ -2949,7 +2949,7 @@
 #. TRANS or processes with special privileges can perform the operation.
 #: stdio-common/../sysdeps/gnu/errlist.c:25
 msgid "Operation not permitted"
-msgstr "¦¹¶µ¾Þ§@¨Ã¤£³Q¤¹³\\"
+msgstr "¦¹¶µ¾Þ§@¨Ã¤£³Q¤¹³\"
 
 #. TRANS The operation you requested is not supported.  Some socket functions
 #. TRANS don't make sense for all types of sockets, and others may not be
@@ -3029,7 +3029,7 @@
 
 #: nis/nis_error.c:55
 msgid "Partial success"
-msgstr "³¡¥÷¦¨¥\\"
+msgstr "³¡¥÷¦¨¥\"
 
 #: nis/nis_error.c:63
 msgid "Passed object is not the same object on server"
@@ -3077,7 +3077,7 @@
 
 #: nis/nis_error.c:30
 msgid "Probable success"
-msgstr "¥i¯à¦¨¥\\"
+msgstr "¥i¯à¦¨¥\"
 
 #: nis/nis_error.c:32
 msgid "Probably not found"
@@ -3218,7 +3218,7 @@
 
 #: sunrpc/clnt_perr.c:163
 msgid "RPC: Success"
-msgstr "RPC: ¦¨¥\\"
+msgstr "RPC: ¦¨¥\"
 
 #: sunrpc/clnt_perr.c:182
 msgid "RPC: Timed out"
@@ -3511,7 +3511,7 @@
 #: nis/nis_error.c:29 nis/ypclnt.c:786 nis/ypclnt.c:860 posix/regex.c:1080
 #: stdio-common/../sysdeps/gnu/errlist.c:20
 msgid "Success"
-msgstr "¦¨¥\\"
+msgstr "¦¨¥\"
 
 #: locale/programs/localedef.c:101
 msgid "Suppress warnings and information messages"
@@ -4547,7 +4547,7 @@
 #: sunrpc/rpc_main.c:1153
 #, c-format
 msgid "file `%s' already exists and may be overwritten\n"
-msgstr "ÀÉ®× `%s' ¤w¸g¦s¦b¨Ã¦³¥i¯à·|³QÂл\\±¼\n"
+msgstr "ÀÉ®× `%s' ¤w¸g¦s¦b¨Ã¦³¥i¯à·|³QÂл\±¼\n"
 
 #: inet/rcmd.c:422
 msgid "fstat failed"
@@ -4747,17 +4747,17 @@
 #: elf/ldconfig.c:606
 #, c-format
 msgid "libc4 library %s in wrong directory"
-msgstr "libc4 ¨ç¦¡®w %s Â\\¿ù¥Ø¿ý¤F"
+msgstr "libc4 ¨ç¦¡®w %s Â\¿ù¥Ø¿ý¤F"
 
 #: elf/ldconfig.c:600
 #, c-format
 msgid "libc5 library %s in wrong directory"
-msgstr "libc5 ¨ç¦¡®w %s Â\\¿ù¥Ø¿ý¤F"
+msgstr "libc5 ¨ç¦¡®w %s Â\¿ù¥Ø¿ý¤F"
 
 #: elf/ldconfig.c:603
 #, c-format
 msgid "libc6 library %s in wrong directory"
-msgstr "libc6 ¨ç¦¡®w %s Â\\¿ù¥Ø¿ý¤F"
+msgstr "libc6 ¨ç¦¡®w %s Â\¿ù¥Ø¿ý¤F"
 
 #: elf/ldconfig.c:633
 #, c-format

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-alpha mailing list