Browse Source

Fixed bug introduced in revision 4452 (IOException on startup).

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@4462 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 16 years ago
parent
commit
0674fca732
  1. 11
      src/Main/StartUp/Project/SharpDevelopMain.cs

11
src/Main/StartUp/Project/SharpDevelopMain.cs

@ -108,7 +108,16 @@ namespace ICSharpCode.SharpDevelop @@ -108,7 +108,16 @@ namespace ICSharpCode.SharpDevelop
// or Windows app (release mode). Because this flag also affects the default encoding
// when reading from other processes' standard output, we explicitly set the encoding to get
// consistent behaviour in debug and release builds of SharpDevelop.
Console.OutputEncoding = System.Text.Encoding.Default;
#if DEBUG
// Console apps use the system's OEM codepage, windows apps the ANSI codepage.
// We'll always use the Windows (ANSI) codepage.
try {
Console.OutputEncoding = System.Text.Encoding.Default;
} catch (IOException) {
// can happen if SharpDevelop doesn't have a console
}
#endif
LoggingService.Info("Starting SharpDevelop...");
try {

Loading…
Cancel
Save