2005-11-28 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / corlib / System.Text / ChangeLog
old mode 100755 (executable)
new mode 100644 (file)
index 7708f7e..498c9a7
@@ -1,3 +1,383 @@
+2005-11-28  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Encoding.cs : added UTF32.
+
+2005-11-28  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UTF32Encoding.cs : surrogate pairs vanished in GetBytes() when the 
+         endianness is big.
+
+2005-11-28  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UTF32Encoding.cs : new file.
+
+2005-11-22  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * ASCIIEncoding.cs, Latin1Encoding.cs : added EncoderFallback support.
+       * Encoding.cs : changed default fallback selection. Seems like only
+         ASCII and GB18030 uses '?' for replacement.
+       * UTF8Encoding.cs : now that Fallback is read only by default, we
+         need special setter.
+
+2005-11-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UTF8Encoding.cs : safer UTF8Decoder ctor.
+
+2005-11-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Decoder.cs : added FallbackBuffer property.
+       * UTF8Encoding.cs : In NET_2_0, use DecoderFallbackBuffer instead of
+         "throwOnInvalid".
+
+2005-11-15  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DecoderReplacementFallbackBuffer.cs : it does not have to preserve
+         byte buffer.
+       * EncoderReplacementFallbackBuffer.cs : implemented.
+       * DecoderReplacementFallback.cs, EncoderReplacementFallback.cs :
+         Removed MonoTODO.
+
+2005-11-15  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DecoderFallbackBuffer.cs : Reset() does nothing here.
+       * DecoderReplacementFallbackBuffer.cs : implemented, but no idea how
+         bytesUnknown is used.
+
+2005-11-15  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Encoding.cs : added ICloneable, Clone() and new GetEncoding().
+
+2005-11-15  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Encoding.cs : Added IsReadOnly, DecoderFallback and EncoderFallback.
+       * Encoder.cs : Added Fallback property.
+       * Decoder.cs : Added Fallback property.
+
+2005-11-15  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * EncoderFallbackBuffer.cs, EncoderFallback.cs,
+         EncoderExceptionFallbackBuffer.cs,
+         EncoderReplacementFallbackBuffer.cs,
+         EncoderFallbackException.cs,
+         EncoderExceptionFallback.cs,
+         EncoderReplacementFallback.cs : new files (not actually used yet).
+       * DecoderExceptionFallback.cs, DecoderFallbackException.cs,
+         DecoderReplacementFallback.cs : [Serializable] and sealed.
+       * DecoderReplacementFallbackBuffer.cs : Reset() was missing.
+
+2005-11-14  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * DecoderFallbackBuffer.cs, DecoderFallback.cs,
+         DecoderExceptionFallbackBuffer.cs,
+         DecoderReplacementFallbackBuffer.cs,
+         DecoderFallbackException.cs,
+         DecoderExceptionFallback.cs,
+         DecoderReplacementFallback.cs : new files (not actually used yet).
+
+2005-11-14  Miguel de Icaza  <miguel@novell.com>
+
+       * ASCIIEncoding.cs, Encoding: Another snack, just a few methods
+       missing.  
+
+       Also add some checks that were missing.
+
+2005-11-11  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * StringBuilder.cs: Fix ISerializable.GetObjectData (remoting tests 
+       were failing under 2.0) and two possible integer overflow in CopyTo.
+
+2005-11-11  Miguel de Icaza  <miguel@novell.com>
+
+       * Encoding.cs, UnicodeEncoding.cs: A few 2.x methods. 
+
+       * StringBuilder.cs (Text): Added serialization support in 2.x. 
+
+2005-10-22  Jonathan Pryor  <jonpryor@vt.edu>
+
+       * UTF8Encoding.cs (InternalGetChars/InternalGetCharCount): Fix lead byte
+         check logic for 6 octet sequences.  ((ch & 0xFC) == 0xFC) is always true 
+         for 0xFF, even though 0xFF isn't a valid lead byte.  It should be 
+         ((ch & 0xFE) == 0xFC).
+
+2005-08-25  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UTF8Encoding.cs : (InternalGetChars/InternalGetCharCount):
+         Don't exclude FEFF in the resulting text.
+
+2005-06-21  Ben Maurer  <bmaurer@ximian.com>
+
+       * StringBuilder.cs (Replace): Do the correct thing when we replace
+       with a longer string. Thanks to Alexander Beznozdrev
+       <abeznozdrev@croc.ru>
+
+2005-05-26  Ben Maurer  <bmaurer@ximian.com>
+
+       * Encoding.cs: Use static object for locking. `volatile' to
+       prevent double checked locking error.
+
+       * StringBuilder.cs: Remove = null inits on fields, saves a few
+       instructions. When we compare _cached_str == _str, we are only
+       interested in pointer based equality, so just do that.
+
+2005-05-06  Ben Maurer  <bmaurer@ximian.com>
+
+       * StringBuilder.cs (InternalEnsureCapacity): It is possible that
+       the size we attempt to grow to is more than the max capacity, but
+       that a smaller size will do. In this case, don't throw an
+       exception. Fixes #72244
+
+2005-04-16  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * NormalizationForm.cs : new file.
+
+2005-03-20  Ben Maurer  <bmaurer@ximian.com>
+
+       * StringBuilder.cs (set_Length): If we set the length, we must
+       clobber the cached string.
+
+2005-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * UnicodeEncoding.cs: same fix (\uFEFF) but for Unicode. Patch by
+       Svetlana Zholkovsky.
+
+2005-03-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * UTF7Encoding.cs: fix for characters encoded as a shifted sequence
+       whose length is greater than 3. Patch by Svetlana Zholkovsky.
+
+2005-01-31  Ben Maurer  <bmaurer@ximian.com>
+
+       * StringBuilder.cs (Remove): We need to do the check that the
+       string isnt being cached *before* we munge it.
+
+2005-01-21  Ben Maurer  <bmaurer@ximian.com>
+
+       * StringBuilder.cs: Don't allocate memory on the .ctor, do it
+       lazily. This saves us lots of memory if you only use the
+       stringbuilder once. Also, we can allocate on the second Append,
+       which might reduce the number of buffers allocated.
+
+2005-01-14 Lluis Sanches Gual  <lluis@novell.com>
+
+       * StringBuilder.cs: Improved parameter check.
+
+2005-01-11 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * StringBuilder.cs: when creating the StringBuilder from a string, the
+       maximum capacity remains Int32.MaxValue.
+
+2005-01-10 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * StringBuilder.cs: throw if the new size is greater than the maximum
+       capacity for the StringBuilder. Patch by luke@octerbar.net. Fixes
+       bug #62422.
+
+2004-12-15  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * UTF7Encoding.cs:  Fixed warning for unused variable.
+
+2004-09-30  Juraj Skripsky <js@hotfeet.ch>
+
+       * Encoding.cs: Add encoding name "latin1" for compatibility with
+       MS.NET.
+
+2004-09-25  Zoltan Varga  <vargaz@freemail.hu>
+
+       * StringBuilder.cs (Append): Use InternalStrcpy to append char arrays.
+
+2004-09-09  Tim Coleman <tim@timcoleman.com>
+
+       * StringBuilder.cs: Added AppendLine methods for Fx 2.0
+
+2004-06-23  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * UTF7Encoding.cs: Fixed decoding table. Fixed char count calculation.
+       Follow the RFC1642 rules for "overbits".
+
+2004-06-15  Gert Driesen <drieseng@users.sourceforge.net>
+
+       * ASCIIEncoding.cs: added TODO for serialization
+       * StringBuilder.cs: added TODO for serialization
+       * UnicodeEncoding.cs: added TODO for serialization
+       * UTF7Encoding.cs: added TODO for serialization
+       * UTF8Encoding.cs: added TODO for serialization
+
+2004-06-10  Gert Driesen <drieseng@users.sourceforge.net>
+
+       * Encoding.cs: Marked protected internal field as internal to
+       fix API signature
+
+2004-06-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UTF8Encoding.cs : Length check must be done only when the character
+         sequence is valid (i.e. should not check when it is overlongs).
+         See also TestThrowOnInvalid().
+
+2004-06-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UTF8Encoding.cs : Added Overlong check to InternalGetCharCount().
+
+2004-06-07  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UTF8Encoding.cs : Throw overlongs error only when throwOnInvalid is
+         true. Otherwise just ignore them.
+
+2004-05-26  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * StringBuilder.cs: Fixed potential integer overflows in several 
+       methods.
+
+2004-05-14  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * UTF8Encoding.cs: Moved charCount-- after the check for surrogate 
+       pair. This fix bug #57009 (and 2 failing unit tests). Added code
+       to check for some (like MS) overlongs.
+
+2004-05-03 Lluis Sanches Gual  <lluis@ximian.com>
+
+       * Encoding.cs: Use name const to load I18N assembly.
+
+2004-04-25  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
+
+       * Encoding.cs: Call shortcut String.ToLowerInvariant
+
+2004-04-13  Miguel de Icaza  <miguel@ximian.com>
+
+       * Encoding.cs: Use new internal codepage setup.
+
+2004-04-10  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * UTF7Encoding.cs : GetMaxByteCount() was based on incorrect formula.
+
+2004-03-19  Dick Porter  <dick@ximian.com>
+
+       * UnicodeEncoding.cs: GetCharCount(), GetChars(): Check for the
+       BOM at the beginning of the range of characters we're interested
+       in, not at the beginning of the array.  Fixes bug 51531.
+
+2004-03-10  Juraj Skripsky <juraj@hotfeet.ch>
+
+       * StringBuilder.cs
+       (Insert int, char[]): fix by using new string(char[]) instead of
+       char[].ToString() and simplify.
+       (Insert int, string, int): add LAMESPEC note.
+       (Insert int char[], int, int): handle value==null according to spec. 
+       Use a string instead of char array + Array.Copy (gonzalo)
+
+2004-03-08  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * StringBuilder.cs:
+       (Append (string)): remove redundant check.
+
+2004-01-23  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * StringBuilder.cs:
+       (Remove): fixed offsets when copying and set the new size. Fixes bug
+       #53240.
+
+2004-01-13  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * StringBuilder.cs: added checks for null in a few Append methods.
+
+Tue Jan 13 22:23:25 CET 2004 Paolo Molaro <lupus@ximian.com>
+
+       * StringBuilder.cs: fixed start offset in Append(char).
+
+2004-01-12  Patrik Torstensson
+
+       * StringBuilder.cs: new implementation that uses
+       string as a buffer instead of a array of chars.
+
+2003-12-07 Ben Maurer  <bmaurer@users.sourceforge.net>
+
+       * UTF8Encoding.cs (GetBytes string): Do not call base
+       The version in Encoding will call string.ToCharArray (),
+       allocating an extra array. By calling the better method
+       in our own class we can save memory.
+
+2003-11-17 Ben Maurer  <bmaurer@users.sourceforge.net>
+
+       * StringBuilder.cs (Insert int, char): It is really silly and
+       wasteful to allocate an array here. We can just copy the value
+       over.
+
+2003-11-11  Miguel de Icaza  <miguel@ximian.com>
+
+       * Encoding.cs: Use an internal variable to track the parameters of
+       each encoder, since the .NET API does not expose virtual methods
+       in the child classes, we should not depend on that.
+       
+       * ASCIIEncoding.cs, UTF7Encoding, UTF8Encoding, UnicodeEncoding:
+       Initialize the parameters for base class encoding here.
+
+2003-09-01  Miguel de Icaza  <miguel@ximian.com>
+
+       * Encoding.cs (UTF8Unmarked): make it also not error out on
+       invalid input, that is what the Microsoft default is for the
+       StreamReader and BinaryReader expect (our main consumers).
+
+2003-08-21 Ben Maurer  <bmaurer@users.sourceforge.net>
+
+       * StringBuilder.cs
+       (AppendFormat) Use FormatHelper in System.String to avoid
+       allocating an extra StringBuilder.
+       (Append string, int, int), (Append char, int): Both were
+       allocating extra strings.
+
+2003-06-05  Nick Drochak  <ndrochak@gol.com>
+
+       * UTF8Encoding.cs: Cleanups according to class status page
+
+2003-05-10  Miguel de Icaza  <miguel@ximian.com>
+
+       * Encoding.cs (GetEncoding): Add all the aliases documented in the
+       framework.  We were missing a few.
+       
+       Reorganize the table.  Also, convert the input name into the
+       lower-case - to _ before we compare against our table.
+       
+2003-05-10  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * StringBuilder.cs: fixed bug #41397.
+
+2003-04-12  Miguel de Icaza  <miguel@ximian.com>
+
+       * Encoding.cs: Enabled the code paths that we did have commented
+       out, they seem to work now.
+
+Fri Apr 11 08:29:50 CEST 2003 Paolo Molaro <lupus@ximian.com>
+
+       * StringBuilder.cs: cache the result from ToString().
+
+2003-03-18  Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
+
+       * UnicodeEncoding.cs: changed WebName from unicodeFFFE to utf-16be.
+         (unicodeFFFE is MS compliant, but isn't valid IANA encoding name.)
+
+2003-03-05  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * ASCIIEncoding.cs: fixed bug #38984.
+
+2003-03-05  Aleksey Demakov <avd@openlinksw.com>
+
+       * ASCIIEncoding.cs:
+       * Latin1Encoding.cs: fix GetString (byte[]) and
+       GetString (byte[], int, int) for zero-length case.
+
+2003-02-19  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Latin1Encoding.cs: added Serializable attribute.
+
+2003-02-03  Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+       * Encoding.cs: removed UnixConsoleEncoding.
+
+2003-01-30  Zoltan Varga  <vargaz@freemail.hu>
+
+       * StringBuilder.cs: fix the constructor: 'value' can be NULL,
+       'capacity' must be >=0, use defaultCapacity only if capacity equals 0.
+       This fixes the StringBuilder unit tests.
+
 2003-01-30  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * StringBuilder.cs: fixed typo in set_Length.