-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix FAKE Chinese text bug #8
Conversation
See fsprojects/FAKE#1196, fsprojects/FAKE#1212, fsprojects/FAKE#1213 & fsprojects/FAKE#1194 Not sure of the ramifications of this change, but this fixes the encoding issues in FAKE for me. l.Head.Encoding was `System.IO.StringWriter(new System.Text.StringBuilder()).Encoding` which evaluates to utf-16 /cc:@forki
Wow |
OK. I might have been a little premature with this fix. |
Even this doesn't work inside FAKE :-
but adding the same line to build.fsx manually does work, which makes me think the issue is in Yaaf somewhere. |
False alarm - it does work. I was invoking ./build.sh which was using the wrong FAKE.exe |
I'm temporarily pointing FAKE's paket.dependencies to this fork. Thanks for investigating |
I don't really understand how this fixes the problem. How does it even matter what the wrapper class returns? This feels wrong. At the very least there should be a comment explaining this. |
I'm using |
Merged as I don't know how this can have any effect. Documentation says this property is only to help XML writers: https://msdn.microsoft.com/en-us/library/system.io.textwriter.encoding%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396 |
Please test again https://www.nuget.org/packages/Yaaf.FSharp.Scripting/1.7.1 and report back if it fixed the problem. Thanks for the analysis and the PR. |
Thanks for merging. I don't understand why this fix works either, but it does! |
it worked! fsprojects/Paket#1948 Thanks so much! |
See
fsprojects/FAKE#1196,
fsprojects/FAKE#1212,
fsprojects/FAKE#1213 &
fsprojects/FAKE#1194
Not sure of the ramifications of this change, but this fixes the
encoding issues in FAKE on Mono for me.
l.Head.Encoding was
System.IO.StringWriter(new System.Text.StringBuilder()).Encoding
which evaluates to utf-16 on both Windows and on Mono
/cc:@forki