[Mono-bugs] [Bug 51528][Wis] New - Encoding problem

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 29 Oct 2004 22:17:51 -0400 (EDT)

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 gonzalo@ximian.com.


--- shadow/51528	2004-10-29 22:17:51.000000000 -0400
+++ shadow/51528.tmp.10467	2004-10-29 22:17:51.000000000 -0400
@@ -0,0 +1,44 @@
+Bug#: 51528
+Product: Mono: Compilers
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEEDINFO   
+Severity: Unknown
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: shiziye@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Encoding problem
+I am a chinese, I write source code int gb18030 encoding.
+For example, I may write:
+  string str = "??"; // ?? is a chinese word encoding in gb18030
+When mcs compile the source code, it can not read the source code
+correctly. Variable str is not the correct Unicode string correspoding to
+my chinese encoding. 
+When I type locale in the console. All the locale enviroment variable is
+I think mcs should read the source code in the default encoding of the
+system. Then translate it to Unicode to process.
+------- Additional Comments From miguel@ximian.com  2003-12-12 08:22 -------
+MCS uses the 28591 code page by default (ISO-Latin-1), I am not sure
+it is a great idea to change the default to be environment dependant.
+You might want to try instead:
+mcs -codepage:936 source.cs
+Please tell me if that fixes your problem.
+Am setting the bug to `NEEDINFO', please update the bug status with
+any further information.
+------- Additional Comments From gonzalo@ximian.com  2004-10-29 22:17 -------
+Almost one year as NEEDINFO. Ping