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

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

[Dotgnu-pnet-commits] CVS: pnetlib/samples codepage.cs,1.1,1.2


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/samples codepage.cs,1.1,1.2
Date: Sun, 08 Dec 2002 01:24:42 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/samples
In directory subversions:/tmp/cvs-serv18333/samples

Modified Files:
        codepage.cs 
Log Message:


Resolve some issues with compiling in ECMA-compatible modes.


Index: codepage.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/samples/codepage.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** codepage.cs 8 Dec 2002 04:29:58 -0000       1.1
--- codepage.cs 8 Dec 2002 06:24:40 -0000       1.2
***************
*** 25,28 ****
--- 25,29 ----
  class CodePage
  {
+ #if !ECMA_COMPAT
        // Print information about an encoding.
        private static void PrintEncoding(Encoding enc, bool verbose, bool 
isdef)
***************
*** 343,345 ****
--- 344,352 ----
                }
        }
+ #else
+       public static void Main(String[] args)
+       {
+               Console.WriteLine("codepage.exe doesn't work in ECMA-compatible 
modes");
+       }
+ #endif
  }




reply via email to

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