dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] pnetlib ChangeLog runtime/System/Globalization/...


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] pnetlib ChangeLog runtime/System/Globalization/...
Date: Sun, 01 Feb 2009 10:16:41 +0000

CVSROOT:        /cvsroot/dotgnu-pnet
Module name:    pnetlib
Changes by:     Klaus Treichel <ktreichel>      09/02/01 10:16:41

Modified files:
        .              : ChangeLog 
        runtime/System/Globalization: CharUnicodeInfo.cs 
        runtime/System/Security/Cryptography/X509Certificates: 
                                                               
X509Certificate.cs 
Added files:
        runtime/System/Globalization: CalendarAlgorithmType.cs 
                                      DigitShapes.cs 
        runtime/System/Text: NormalizationForm.cs 

Log message:
        Add some 2.0 stuff.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pnetlib/ChangeLog?cvsroot=dotgnu-pnet&r1=1.2550&r2=1.2551
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Globalization/CharUnicodeInfo.cs?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Globalization/CalendarAlgorithmType.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Globalization/DigitShapes.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs?cvsroot=dotgnu-pnet&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/pnetlib/runtime/System/Text/NormalizationForm.cs?cvsroot=dotgnu-pnet&rev=1.1

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/ChangeLog,v
retrieving revision 1.2550
retrieving revision 1.2551
diff -u -b -r1.2550 -r1.2551
--- ChangeLog   28 Jan 2009 07:44:03 -0000      1.2550
+++ ChangeLog   1 Feb 2009 10:16:39 -0000       1.2551
@@ -1,3 +1,15 @@
+2009-02-01  Klaus Treichel  <address@hidden>
+
+       * runtime/System/Globalization/CharUnicodeInfo.cs: Change coditional
+       compilation from CONFIG_FRAMEWORK_1_2 to CONFIG_FRAMEWORK_2_0.
+
+       * 
runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs:
+       Fix build with compact profile (without CONFIG_SERIALIZATION).
+
+       * runtime/System/Globalization/CalendarAlgorithmType.cs,
+       runtime/System/Globalization/DigitShapes.cs,
+       runtime/System/Text/NormalizationForm.cs: Add some 2.0 enumerations.
+
 2009-01-28  Heiko Weiss <address@hidden>
 
        * System.Xml/XmlReader.cs: fix ReadString for empty elements

Index: runtime/System/Globalization/CharUnicodeInfo.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Globalization/CharUnicodeInfo.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- runtime/System/Globalization/CharUnicodeInfo.cs     12 Nov 2003 09:09:44 
-0000      1.1
+++ runtime/System/Globalization/CharUnicodeInfo.cs     1 Feb 2009 10:16:40 
-0000       1.2
@@ -22,7 +22,7 @@
 namespace System.Globalization
 {
 
-#if !ECMA_COMPAT && CONFIG_FRAMEWORK_1_2
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0
 
 using Platform;
 
@@ -145,6 +145,6 @@
 
 }; // class CharUnicodeInfo
 
-#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_1_2
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0
 
 }; // namespace System.Globalization

Index: runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs    
27 Sep 2004 06:57:55 -0000      1.5
+++ runtime/System/Security/Cryptography/X509Certificates/X509Certificate.cs    
1 Feb 2009 10:16:41 -0000       1.6
@@ -28,12 +28,12 @@
 using System.IO;
 using System.Text;
 using System.Security.Cryptography;
-#if CONFIG_FRAMEWORK_2_0
+#if CONFIG_FRAMEWORK_2_0 && CONFIG_SERIALIZATION
 using System.Runtime.Serialization;
 #endif
 
 [Serializable]
-#if CONFIG_FRAMEWORK_2_0
+#if CONFIG_SERIALIZATION
 public class X509Certificate: IDeserializationCallback, ISerializable
 #else
 public class X509Certificate
@@ -52,14 +52,6 @@
        private byte[] serialNumber;
 
        // Constructors.
-#if CONFIG_FRAMEWORK_2_0
-       [TODO]
-       public X509Certificate()
-                       {
-                               throw new 
NotImplementedException("X509Certificate()");
-                       }
-
-#endif
        public X509Certificate(byte[] data)
                        {
                                if(data == null)
@@ -68,8 +60,29 @@
                                }
                                Parse(data);
                        }
+#if !CONFIG_COMPACT_FRAMEWORK
+       public X509Certificate(IntPtr handle)
+                       {
+                               // Handle-based certificate construction is not 
supported.
+                               throw new NotSupportedException
+                                       (_("Crypto_CertNotSupp"));
+                       }
+       public X509Certificate(X509Certificate cert)
+                       {
+                               if(cert == null)
+                               {
+                                       throw new ArgumentNullException("cert");
+                               }
+                               Parse(cert.rawData);
+                       }
 #if CONFIG_FRAMEWORK_2_0
        [TODO]
+       public X509Certificate()
+                       {
+                               throw new 
NotImplementedException("X509Certificate()");
+                       }
+
+       [TODO]
        public X509Certificate(byte[] rawData, String password)
                        {
                                throw new 
NotImplementedException("X509Certificate(byte[], String)");
@@ -79,19 +92,13 @@
                        {
                                throw new 
NotImplementedException("X509Certificate(byte[], String, X509KeyStorageFlags)");
                        }
-#endif
-       public X509Certificate(IntPtr handle)
-                       {
-                               // Handle-based certificate construction is not 
supported.
-                               throw new NotSupportedException
-                                       (_("Crypto_CertNotSupp"));
-                       }
-#if CONFIG_FRAMEWORK_2_0
+#if CONFIG_SERIALIZATION
        [TODO]
        public X509Certificate(SerializationInfo info, StreamingContext context)
                        {
                                throw new 
NotImplementedException("X509Certificate(SerializationInfo, StreamingContext)");
                        }
+#endif // CONFIG_SERIALIZATION
        [TODO]
        public X509Certificate(String fileName)
                        {
@@ -107,16 +114,8 @@
                        {
                                throw new 
NotImplementedException("X509Certificate(String, String, X509KeyStorageFlags)");
                        }
-#endif
-       public X509Certificate(X509Certificate cert)
-                       {
-                               if(cert == null)
-                               {
-                                       throw new ArgumentNullException("cert");
-                               }
-                               Parse(cert.rawData);
-                       }
-
+#endif // CONFIG_FRAMEWORK_2_0
+#endif // !CONFIG_COMPACT_FRAMEWORK
        // Parse the contents of a certificate data block.
        private void Parse(byte[] data)
                        {
@@ -380,11 +379,13 @@
                        }
 
 #if CONFIG_FRAMEWORK_2_0
+#if CONFIG_SERIALIZATION
        [TODO]
        void ISerializable.GetObjectData(SerializationInfo info, 
StreamingContext context)
                        {
                                throw new 
NotImplementedException("GetObjectData");
                        }
+#endif // CONFIG_SERIALIZATION
        [TODO]
        public IntPtr Handle
                        {
@@ -413,11 +414,13 @@
                        {
                                throw new NotImplementedException("Import");
                        }
+#if CONFIG_SERIALIZATION
        [TODO]
        void IDeserializationCallback.OnDeserialization(Object sender)
                        {
                                throw new 
NotImplementedException("OnDeserialization");
                        }
+#endif // CONFIG_SERIALIZATION
        [TODO]
        public virtual void Reset()
                        {

Index: runtime/System/Globalization/CalendarAlgorithmType.cs
===================================================================
RCS file: runtime/System/Globalization/CalendarAlgorithmType.cs
diff -N runtime/System/Globalization/CalendarAlgorithmType.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ runtime/System/Globalization/CalendarAlgorithmType.cs       1 Feb 2009 
10:16:40 -0000       1.1
@@ -0,0 +1,39 @@
+/*
+ * CalendarAlgorithmType.cs - Implementation of
+ *             "System.Globalization.CalendarAlgorithmType".
+ *
+ * Copyright (C) 2009  Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+namespace System.Globalization
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public enum CalendarAlgorithmType
+{
+
+       Unknown                         = 0,
+       SolarCalendar           = 1,
+       LunarCalendar           = 2,
+       LunisolarCalendar       = 3
+
+}; // enum CalendarAlgorithmType
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Globalization

Index: runtime/System/Globalization/DigitShapes.cs
===================================================================
RCS file: runtime/System/Globalization/DigitShapes.cs
diff -N runtime/System/Globalization/DigitShapes.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ runtime/System/Globalization/DigitShapes.cs 1 Feb 2009 10:16:40 -0000       
1.1
@@ -0,0 +1,38 @@
+/*
+ * DigitShapes.cs - Implementation of
+ *             "System.Globalization.DigitShapes".
+ *
+ * Copyright (C) 2009  Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+namespace System.Globalization
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public enum DigitShapes
+{
+
+       Context                 = 0,
+       None                    = 1,
+       NativeNational  = 2
+
+}; // enum DigitShapes
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Globalization

Index: runtime/System/Text/NormalizationForm.cs
===================================================================
RCS file: runtime/System/Text/NormalizationForm.cs
diff -N runtime/System/Text/NormalizationForm.cs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ runtime/System/Text/NormalizationForm.cs    1 Feb 2009 10:16:41 -0000       
1.1
@@ -0,0 +1,39 @@
+/*
+ * NormalizationForm.cs - Implementation of the "System.Text.NormalizationForm"
+ *                                               class.
+ *
+ * Copyright (C) 2009  Free Software Foundation Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+namespace System.Text
+{
+
+#if !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+public enum NormalizationForm
+{
+
+       FormC           = 1,
+       FormD           = 2,
+       FormKC          = 5,
+       FormKD          = 6
+
+}; // enum NormalizationForm
+
+#endif // !ECMA_COMPAT && CONFIG_FRAMEWORK_2_0 && !CONFIG_COMPACT_FRAMEWORK
+
+}; // namespace System.Text




reply via email to

[Prev in Thread] Current Thread [Next in Thread]