View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0029759 | 2.x IDE Bugs | Build Windows | Public | 2018-07-05 15:11 | 2018-09-05 15:53 |
Reporter | Stewart Bishop | Assigned To | Claire Hall | ||
Priority | High | Severity | B - Major | Reproducibility | 100% |
Status | Closed | Resolution | Fixed | ||
Platform | Windows | OS | Windows | OS Version | |
Product Version | 2.1.4 | ||||
Target Version | 2.2.0 | Fixed in Version | 2.2.0 | ||
Summary | 0029759: Build Windows: Error making a zip if your Windows regional language is not set to English | ||||
Description | If you've installed Windows as not English (United States) or English (United Kingdom) then you might get the following error to occur when you build a zip of your game on Windows: Exception during processing System.ArgumentException: 1 is not a supported code page. Parameter name: codepage at System.Text.Encoding.GetEncoding(Int32 codepage) at ICSharpCode.SharpZipLib.Zip.ZipConstants.ConvertToArray(String str) at ICSharpCode.SharpZipLib.Zip.ZipConstants.ConvertToArray(Int32 flags, String str) at ICSharpCode.SharpZipLib.Zip.ZipFile.WriteLocalEntryHeader(ZipUpdate update) at ICSharpCode.SharpZipLib.Zip.ZipFile.AddEntry(ZipFile workFile, ZipUpdate update) at ICSharpCode.SharpZipLib.Zip.ZipFile.RunUpdates() at ICSharpCode.SharpZipLib.Zip.ZipFile.CommitUpdate() at �.�.�(String �, String �, String �) Reading https://stackoverflow.com/questions/46950386/sharpziplib-1-is-not-a-supported-code-page this is apparently easily fixed by specifying which codepage we need to be on by supplying "ICSharpCode.SharpZipLib.Zip.ZipConstants.DefaultCodePage = 437;" where required. We should force the codepage rather than require users to change the Region settings on their Windows installation. | ||||
Steps To Reproduce | 1) Have your Windows 10 Region set to something other than English 2) Open GMS2 3) Attempt to create a ZIP for Windows 4) See that this can fail depending on the codepage SharpZipLib finds | ||||
Tags | No tags attached. | ||||
2.x IDE Found In | 2.1.5.314 | ||||
2.x Runtime Found In | 2.1.5.237 | ||||
2.x IDE Verified In | 2.2.0.334 | ||||
2.x Runtime Verified In | 2.1.5.247 | ||||