[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bug] resgen produces incorrect PO files
From: |
Bruno Haible |
Subject: |
[Pnet-developers] [bug] resgen produces incorrect PO files |
Date: |
Thu, 18 Dec 2003 15:40:29 +0100 |
User-agent: |
KMail/1.5 |
Using pnet-0.6.0.
============================ hello.de.resx ====================
<?xml version="1.0" encoding="utf-8" ?>
<root>
<resheader name="ResMimeType">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="Version">
<value>1.0.0.0</value>
</resheader>
<resheader name="Reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms,
Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="Writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms,
Version=1.0.3102.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Hello World!">
<value>Hallchen Welt!</value>
</data>
</root>
================================================================
$ resgen hello.de.resx de.po
$ cat de.po
msgid "Hello World!"
msgstr "Hall\xF6chen Welt!"
The problem with this output is that in PO files the \x escape sequence
takes an arbitrary number of hexadecimal digits as "argument" - like
\x escape sequences in ISO C. (See ISO C 99 section 6.4.4.4.(7): "Each
octal or hexadecimal escape sequence is the longest sequence of characters
that can constitute the escape sequence.") In this case, the escape
sequence is "\xF6c", which is equivalent to a lowercase 'l':
$ msgcat de.po
msgid "Hello World!"
msgstr "Halllhen Welt!"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pnet-developers] [bug] resgen produces incorrect PO files,
Bruno Haible <=