Author: atsushi
Date: 2006-01-30 07:06:56 -0500 (Mon, 30 Jan 2006)
New Revision: 56246
Modified:
trunk/mcs/class/I18N/CJK/CP51932.cs
trunk/mcs/class/I18N/CJK/CP949.cs
trunk/mcs/class/I18N/CJK/ChangeLog
trunk/mcs/class/I18N/CJK/DbcsEncoding.cs
trunk/mcs/class/I18N/CJK/GB18030Encoding.cs
trunk/mcs/class/I18N/CJK/ISO2022JP.cs
Log:
2006-01-30 Atsushi Enomoto <[EMAIL PROTECTED]>
* DbcsEncoding.cs ISO2022JP.cs GB18030Encoding.cs CP51932.cs
CP949.cs : Fixed windows code page and some minor properties.
Modified: trunk/mcs/class/I18N/CJK/CP51932.cs
===================================================================
--- trunk/mcs/class/I18N/CJK/CP51932.cs 2006-01-30 12:05:39 UTC (rev 56245)
+++ trunk/mcs/class/I18N/CJK/CP51932.cs 2006-01-30 12:06:56 UTC (rev 56246)
@@ -65,7 +65,7 @@
private const int EUC_JP_CODE_PAGE = 51932;
// Constructor.
- public CP51932 () : base (EUC_JP_CODE_PAGE)
+ public CP51932 () : base (EUC_JP_CODE_PAGE, 932)
{
}
@@ -186,11 +186,6 @@
public override String WebName {
get { return "euc-jp"; }
}
-
- // Get the Windows code page represented by this object.
- public override int WindowsCodePage {
- get { return EUC_JP_CODE_PAGE; }
- }
} // CP51932
#endif // !ECMA_COMPAT
Modified: trunk/mcs/class/I18N/CJK/CP949.cs
===================================================================
--- trunk/mcs/class/I18N/CJK/CP949.cs 2006-01-30 12:05:39 UTC (rev 56245)
+++ trunk/mcs/class/I18N/CJK/CP949.cs 2006-01-30 12:06:56 UTC (rev 56246)
@@ -105,7 +105,8 @@
internal class KoreanEncoding : DbcsEncoding
{
// Constructor.
- public KoreanEncoding (int codepage, bool useUHC) : base (codepage) {
+ public KoreanEncoding (int codepage, bool useUHC)
+ : base (codepage, 949) {
this.useUHC = useUHC;
}
Modified: trunk/mcs/class/I18N/CJK/ChangeLog
===================================================================
--- trunk/mcs/class/I18N/CJK/ChangeLog 2006-01-30 12:05:39 UTC (rev 56245)
+++ trunk/mcs/class/I18N/CJK/ChangeLog 2006-01-30 12:06:56 UTC (rev 56246)
@@ -1,3 +1,8 @@
+2006-01-30 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * DbcsEncoding.cs ISO2022JP.cs GB18030Encoding.cs CP51932.cs
+ CP949.cs : Fixed windows code page and some minor properties.
+
2006-01-23 Atsushi Enomoto <[EMAIL PROTECTED]>
* DbcsConvert.cs ISO2022JP.cs CP950.cs CP932.cs: author lines.
Modified: trunk/mcs/class/I18N/CJK/DbcsEncoding.cs
===================================================================
--- trunk/mcs/class/I18N/CJK/DbcsEncoding.cs 2006-01-30 12:05:39 UTC (rev
56245)
+++ trunk/mcs/class/I18N/CJK/DbcsEncoding.cs 2006-01-30 12:06:56 UTC (rev
56246)
@@ -14,8 +14,15 @@
[Serializable]
internal abstract class DbcsEncoding : MonoEncoding
{
- public DbcsEncoding(int codePage) : base(codePage) {}
+ public DbcsEncoding (int codePage) : this (codePage, 0)
+ {
+ }
+ public DbcsEncoding (int codePage, int windowsCodePage)
+ : base (codePage, windowsCodePage)
+ {
+ }
+
internal abstract DbcsConvert GetConvert ();
// Get the number of bytes needed to encode a character buffer.
Modified: trunk/mcs/class/I18N/CJK/GB18030Encoding.cs
===================================================================
--- trunk/mcs/class/I18N/CJK/GB18030Encoding.cs 2006-01-30 12:05:39 UTC (rev
56245)
+++ trunk/mcs/class/I18N/CJK/GB18030Encoding.cs 2006-01-30 12:06:56 UTC (rev
56246)
@@ -25,7 +25,7 @@
{
// Constructor.
public GB18030Encoding ()
- : base (54936)
+ : base (54936, 936)
{
}
@@ -33,10 +33,34 @@
get { return "Chinese Simplified (GB18030)"; }
}
+ public override string HeaderName {
+ get { return "GB18030"; }
+ }
+
+ public override string BodyName {
+ get { return "GB18030"; }
+ }
+
public override string WebName {
get { return "GB18030"; }
}
+ public override bool IsMailNewsDisplay {
+ get { return true; }
+ }
+
+ public override bool IsMailNewsSave {
+ get { return true; }
+ }
+
+ public override bool IsBrowserDisplay {
+ get { return true; }
+ }
+
+ public override bool IsBrowserSave {
+ get { return true; }
+ }
+
public override int GetMaxByteCount (int len)
{
// non-GB2312 characters in \u0080 - \uFFFF
Modified: trunk/mcs/class/I18N/CJK/ISO2022JP.cs
===================================================================
--- trunk/mcs/class/I18N/CJK/ISO2022JP.cs 2006-01-30 12:05:39 UTC (rev
56245)
+++ trunk/mcs/class/I18N/CJK/ISO2022JP.cs 2006-01-30 12:06:56 UTC (rev
56246)
@@ -53,7 +53,7 @@
public class ISO2022JPEncoding : MonoEncoding
{
public ISO2022JPEncoding (int codePage, bool allow1ByteKana,
bool allowShiftIO)
- : base (codePage)
+ : base (codePage, 932)
{
this.allow_1byte_kana = allow1ByteKana;
this.allow_shift_io = allowShiftIO;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches