fix(app): make instances with non-UTF8 text file encodings launcheable and importable (#3721)

Previous to these changes, the app always assumed that Minecraft and
other launchers always use UTF-8, which is not necessarily always true.
This commit is contained in:
Alejandro González
2025-06-13 22:52:57 +02:00
committed by GitHub
parent 4e3bd4e282
commit d4de1dc9a1
9 changed files with 131 additions and 76 deletions

13
Cargo.lock generated
View File

@@ -1379,6 +1379,17 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
[[package]]
name = "chardetng"
version = "0.1.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14b8f0b65b7b08ae3c8187e8d77174de20cb6777864c6b832d8ad365999cf1ea"
dependencies = [
"cfg-if",
"encoding_rs",
"memchr",
]
[[package]]
name = "chrono"
version = "0.4.41"
@@ -8865,6 +8876,7 @@ dependencies = [
"async_zip",
"base64 0.22.1",
"bytes",
"chardetng",
"chrono",
"daedalus",
"dashmap",
@@ -8872,6 +8884,7 @@ dependencies = [
"discord-rich-presence",
"dunce",
"either",
"encoding_rs",
"enumset",
"flate2",
"fs4",