Skip to content

Commit 49a47a9

Browse files
committed
#1087 FreeSql.Generator 在mac系统提示信息乱码,去掉 Console.OutputEncoding = gb2312
1 parent 814f82a commit 49a47a9

File tree

2 files changed

+10
-193
lines changed

2 files changed

+10
-193
lines changed

Extensions/FreeSql.Generator/ConsoleApp.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ class ConsoleApp
2929
public ConsoleApp(string[] args, ManualResetEvent wait)
3030
{
3131
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
32-
var gb2312 = Encoding.GetEncoding("GB2312");
33-
if (gb2312 != null)
34-
{
35-
try
36-
{
37-
Console.OutputEncoding = gb2312;
38-
Console.InputEncoding = gb2312;
39-
}
40-
catch { }
41-
}
32+
//var gb2312 = Encoding.GetEncoding("GB2312");
33+
//if (gb2312 != null)
34+
//{
35+
// try
36+
// {
37+
// Console.OutputEncoding = gb2312;
38+
// Console.InputEncoding = gb2312;
39+
// }
40+
// catch { }
41+
//}
4242

4343
//var ntjson = Assembly.LoadFile(@"C:\Users\28810\Desktop\testfreesql\bin\Debug\netcoreapp2.2\publish\testfreesql.dll");
4444

FreeSql/FreeSql.xml

Lines changed: 0 additions & 183 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)