Skip to content
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

Use UTF-8 encoding for process output on Mono #1212

Merged
merged 1 commit into from Apr 10, 2016

Conversation

juergenhoetzel
Copy link
Contributor

Fixes encoding issus on systems when encoding property is not set.

Fixes encoding issus on systems when encoding property is not set.
@forki
Copy link
Member

forki commented Apr 10, 2016

good

@nosami @Yantrio is that that famous "chinese mono bug"?

@forki forki merged commit 059d39d into fsprojects:master Apr 10, 2016
@nosami
Copy link
Member

nosami commented Apr 10, 2016

Quite possibly :) If it is, then we have the same bug in Xamarin Studio somewhere :)

@forki
Copy link
Member

forki commented Apr 10, 2016

Release in progress. Would love to hear if you can still reproduce Chinese
translation.
On Apr 10, 2016 19:17, "Jason Imison" notifications@github.com wrote:

Quite possibly :) If it is, then we have the same bug in Xamarin Studio
somewhere :)


You are receiving this because you modified the open/close state.

Reply to this email directly or view it on GitHub
#1212 (comment)

@nosami
Copy link
Member

nosami commented Apr 10, 2016

Haven't seen it once since the chat in gitter the other day.

On Sun, Apr 10, 2016 at 6:26 PM, Steffen Forkmann notifications@github.com
wrote:

Release in progress. Would love to hear if you can still reproduce Chinese
translation.
On Apr 10, 2016 19:17, "Jason Imison" notifications@github.com wrote:

Quite possibly :) If it is, then we have the same bug in Xamarin Studio
somewhere :)


You are receiving this because you modified the open/close state.

Reply to this email directly or view it on GitHub
#1212 (comment)


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#1212 (comment)

@Yantrio
Copy link

Yantrio commented Apr 11, 2016

I'll give it a spin when I start work and let you know 👍

@forki
Copy link
Member

forki commented Apr 11, 2016

Looks like it broke others: #1213

Should I revert?

@forki
Copy link
Member

forki commented Apr 11, 2016

Ok I reverted.

@juergenhoetzel I think the idea is good, but it seems we need to be more careful where to enable this.

/cc @kentcb

@juergenhoetzel
Copy link
Contributor Author

@nosami @Yantrio is that that famous "chinese mono bug"?

out

Output looks like chinese indeed.

juergenhoetzel added a commit to juergenhoetzel/FAKE that referenced this pull request Apr 11, 2016
Fixes encoding issues when encoding property is not set: Refs fsprojects#1212.

This is a revised version of commit 2d63a45,
which broke external processes when standard error/output is not redirected: Refs fsprojects#1213

This commit only sets the encoding when output is redirected.
@forki
Copy link
Member

forki commented Apr 11, 2016

yes that' what @Yantrio and @nosami reported

@Yantrio
Copy link

Yantrio commented Apr 11, 2016

Can I ask if you are getting it on osx only, or if it's on linux too @juergenhoetzel ?

@juergenhoetzel
Copy link
Contributor Author

@Yantrio I use Arch Linux only (Mono 4.4.0.40 currently)

nosami added a commit to nosami/Yaaf.FSharp.Scripting that referenced this pull request Oct 7, 2016
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants