--- /dev/null
+using System;
+
+namespace System.Text {
+
+ internal static partial class EncodingHelper {
+
+ static volatile Encoding utf8Encoding;
+
+ internal static Encoding UTF8 {
+ get {
+ if (utf8Encoding == null) {
+ lock (lockobj){
+ if (utf8Encoding == null){
+ utf8Encoding = new UTF8Encoding (true, false);
+ utf8Encoding.setReadOnly ();
+ }
+ }
+ }
+
+ return utf8Encoding;
+ }
+ }
+
+ // The mobile profile has been default'ing to UTF8 since it's creation
+ internal static Encoding GetDefaultEncoding ()
+ {
+ return UTF8;
+ }
+ }
+}
\ No newline at end of file
+++ /dev/null
-#if MONOTOUCH
-
-// this file is a shim to enable compiling monotouch profiles without mono-extensions
-namespace System.Text
-{
- internal static partial class EncodingHelper
- {
- internal static Encoding GetDefaultEncoding ()
- {
- throw new NotSupportedException ();
- }
- }
-}
-
-#endif
CoreFoundation/CFHelpers.cs
System.Security.Cryptography.X509Certificates/X509CertificateImplApple.cs
System.Security.Cryptography.X509Certificates/X509Helper.Apple.cs
+System.Text/EncodingHelper.MonoTouch.cs
+++ /dev/null
-System.Text/EncodingHelper.MonoTouch.opt.cs
CoreFoundation/CFHelpers.cs
System.Security.Cryptography.X509Certificates/X509CertificateImplApple.cs
System.Security.Cryptography.X509Certificates/X509Helper.Apple.cs
+System.Text/EncodingHelper.MonoTouch.cs
+++ /dev/null
-#include monotouch_opt_corlib.dll.sources
CoreFoundation/CFHelpers.cs
System.Security.Cryptography.X509Certificates/X509CertificateImplApple.cs
System.Security.Cryptography.X509Certificates/X509Helper.Apple.cs
+System.Text/EncodingHelper.MonoTouch.cs
+++ /dev/null
-#include monotouch_opt_corlib.dll.sources
+++ /dev/null
-#include monotouch_opt_corlib.dll.sources
CoreFoundation/CFHelpers.cs
System.Security.Cryptography.X509Certificates/X509CertificateImplApple.cs
System.Security.Cryptography.X509Certificates/X509Helper.Apple.cs
+System.Text/EncodingHelper.MonoTouch.cs
+++ /dev/null
-#include monotouch_opt_corlib.dll.sources
+++ /dev/null
-#include monotouch_opt_corlib.dll.sources