sdk: dotnet muxer reports JSON syntax error when global.json is saved in UTF8+BOM
Steps to reproduce
- Save global.json in utf8 with byte order mark.
- dotnet build
Expected behavior
dotnet build shows no errors
Actual behavior
A JSON parsing exception occurred: * Line 1, Column 2 Syntax error: Malformed token
Environment data
dotnet --version output:
A JSON parsing exception occurred: * Line 1, Column 2 Syntax error: Malformed token
1.0.0-beta-002171
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 28 (26 by maintainers)
Commits related to this issue
- Don't generate BOM in generated global.json https://github.com/dotnet/cli/issues/2159 — committed to sbomer/linker by sbomer 7 years ago
- Don't generate BOM in generated global.json https://github.com/dotnet/cli/issues/2159 — committed to sbomer/linker by sbomer 7 years ago
- MusicStore test fixes: pin versions, run with correct roots (#181) * Generate global.json This way the SDK version used to build illink only needs to be specified once, in .cliversion. * Pin m... — committed to dotnet/linker by sbomer 7 years ago
- Defend against parallel access to package assets cache (#2159) This can happen if certain targets are invoked in parallel on the same project having with global properties not differing sufficiently... — committed to wli3/cli by nguerrera 6 years ago
This can be looked into fixing for future update - UTF8 is what we support (or lack of BOM). This can be called out in Release notes.
For UTF16 issue fix in a future update, please file a new issue and assign to @schellap