[Mono-bugs] [Bug 52106][Nor] New - monoresgen produces junk for valid PO files
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 12 Dec 2003 09:53:38 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by bruno@clisp.org.
http://bugzilla.ximian.com/show_bug.cgi?id=52106
--- shadow/52106 2003-12-12 09:53:38.000000000 -0500
+++ shadow/52106.tmp.29619 2003-12-12 09:53:38.000000000 -0500
@@ -0,0 +1,64 @@
+Bug#: 52106
+Product: Mono/Compilers
+Version: unspecified
+OS: SUSE 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: bruno@clisp.org
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: monoresgen produces junk for valid PO files
+
+Description of Problem:
+The input PO file is an ISO-8859-1 encoded PO file, valid as you can see from
+"msgfmt -c". The output .resources file is empty and therefore invalid.
+
+
+Steps to reproduce the problem:
+Install mono-0.28 and gettext >= 0.11.5.
+Store de.po (attached).
+$ msgfmt -c de.po && echo ok
+ok
+$ monoresgen de.po hello.de.resx
+$ ls -l hello.de.resx
+$ monoresgen hello.de.resx de2.po
+
+
+
+Actual Results:
+$ monoresgen de.po hello.de.resx
+Read in 2 resources from 'de.po'
+Writing resource file... Done.
+$ ls -l hello.de.resx
+-rw-r--r-- 1 bruno user 0 2003-12-12 11:37 hello.de.resx
+$ monoresgen hello.de.resx de2.po
+Error: Exception has been thrown by the target of an invocation.
+Inner exception: Document element did not appear.
+
+
+Expected Results:
+$ monoresgen de.po hello.de.resx
+Read in 2 resources from 'de.po'
+Writing resource file... Done.
+$ ls -l hello.de.resx
+<Some nonempty file>
+$ monoresgen hello.de.resx de2.po
+<No error>
+
+
+How often does this happen?
+Reproducible.
+
+
+Additional Information:
+
+The PO file format is specified in the GNU gettext documentation, section 'PO
+Files' and 'Header Entry'. Special characters need to be escaped when put
+into PO files.