[Mono-bugs] [Bug 52103][Nor] New - monoresgen produces invalid PO files

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 12 Dec 2003 09:41:33 -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=52103

--- shadow/52103	2003-12-12 09:41:33.000000000 -0500
+++ shadow/52103.tmp.29475	2003-12-12 09:41:33.000000000 -0500
@@ -0,0 +1,69 @@
+Bug#: 52103
+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 invalid PO files
+
+Description of Problem: 
+monoresgen produces invalid PO files. 
+ 
+ 
+Steps to reproduce the problem: 
+Install mono-0.28 and gettext >= 0.11.5. 
+Store hello1.de.resx (attached). 
+$ monoresgen hello1.de.resx de.po 
+$ cat de.po  
+$ msgcat de.po  
+ 
+ 
+Actual Results: 
+$ cat de.po  
+msgid "Hello World!" 
+msgstr "Hallöchen Welt!" 
+ 
+$ msgcat de.po  
+msgcat: input file `de.po' doesn't contain a header entry with a charset 
+specification 
+ 
+ 
+Expected Results: 
+$ cat de.po 
+msgid "" 
+msgstr "" 
+"Content-Type: text/plain; charset=UTF-8\n" 
+"Content-Transfer-Encoding: 8bit\n" 
+ 
+msgid "Hello World!" 
+msgstr "Hallöchen Welt!" 
+$ msgcat de.po 
+msgid "" 
+msgstr "" 
+"Content-Type: text/plain; charset=UTF-8\n" 
+"Content-Transfer-Encoding: 8bit\n" 
+ 
+msgid "Hello World!" 
+msgstr "Hallöchen Welt!" 
+ 
+ 
+ 
+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'. A PO file with non-ASCII characters needs a header 
+entry, to specify the encoding of the PO file.