The bug
It looks like the options.txt
file is read and written using the default OS encoding. This can cause problems with resource packs whose name contains non-ASCII characters.
How to reproduce
Create a resource pack with a non-ASCII character in its name or download the attached
and place it in the resource pack folder
Select the resource pack
Restart the game
→ The resource pack is not selected anymore. Additionally theoptions.txt
file shows a malformed resource pack name ("§3MC-117449.zip")
Linked issues
is duplicated by 4
relates to 2
Attachments
Comments 11
Impossible to check as it depend of Windows, the name of the pack is stored in the folder name and not in the pack.mcmeta file
It looks like the problem is that the options.txt
file is read and written using the default OS encoding which likely in most causes fails to read and write non-ASCII correctly.
@@unknown you are the reporter of the ticket which means you can edit the affected versions yourself and do not need to comment 😉
Pay attention to the fact that the next version of optifine for 1.12 will fix this bug, so if you see in a future release that this bug is fixed, you have to check without optifine.
OptiFine C3 fixed it. Changelog
Make sure your using UTF-8 encoding not ANSI encoding.