diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2004-02-03 18:28:44 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2004-02-03 18:28:44 +0300 |
commit | a540306d7f34cd0d668bdd2de7584a2991b3dd44 (patch) | |
tree | 858b1fd984fe40a70aecab516cf27315badc0236 /mcs/class/System.XML/System.Xml/DTDReader.cs | |
parent | 43143e82c8a838d83bb85dfb2dd38018632e753a (diff) |
2004-02-03 Atsushi Enomoto <atsushi@ximian.com>
* XmlTextReader.cs, DTDReader.cs : fixity fix ;)
svn path=/trunk/mcs/; revision=22744
Diffstat (limited to 'mcs/class/System.XML/System.Xml/DTDReader.cs')
-rw-r--r-- | mcs/class/System.XML/System.Xml/DTDReader.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System.XML/System.Xml/DTDReader.cs b/mcs/class/System.XML/System.Xml/DTDReader.cs index 99869af64ab..6b3bc74a480 100644 --- a/mcs/class/System.XML/System.Xml/DTDReader.cs +++ b/mcs/class/System.XML/System.Xml/DTDReader.cs @@ -1379,8 +1379,8 @@ namespace System.Xml if (ch < Char.MaxValue) return ((char) ch).ToString (); else { - char [] tmp = new char [] {(char) (ch / 0x10000 + 0xD800), (char) (ch % 0x10000 + 0xDC00)}; - return tmp.ToString (); + char [] tmp = new char [] {(char) (ch / 0x10000 + 0xD800 - 1), (char) (ch % 0x10000 + 0xDC00)}; + return new string (tmp); } } @@ -1584,7 +1584,7 @@ namespace System.Xml if (ch < Char.MaxValue) nameBuffer [nameLength++] = (char) ch; else { - nameBuffer [nameLength++] = (char) (ch / 0x10000 + 0xD800); + nameBuffer [nameLength++] = (char) (ch / 0x10000 + 0xD800 - 1); CheckNameCapacity (); nameBuffer [nameLength++] = (char) (ch % 0x10000 + 0xDC00); } |