`launcher_profiles.json` 在 Linux/macOS 写成 GB18030

Open Beginner friendly
#3,871 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
desktop

Research direction

Start at PCL.Launcher.Core/Minecraft/GameFolders/GameFolders.cs:266-269, where launcher_profiles.json is written, and check which encoding the writer uses; then look at the second write path in PCL.Launcher.Core/Launch/Run.cs:117-120. Reproduce on Linux or macOS with a non-ASCII username and inspect the bytes of the resulting file. It is done when both paths emit valid UTF-8 and the official launcher/Forge installer reads the profile back without garbled names; the issue asks for that measurement, so record the result.

Written by the indexing model from the issue text.

Description

  • PCL.Launcher.Core/Minecraft/GameFolders/GameFolders.cs:266-269
  • PCL.Launcher.Core/Launch/Run.cs:117-120

Linux 和 macOS 的官方启动器和 Forge 安装器通常按 UTF-8 读取。非 ASCII 用户名会写出无效 UTF-8,可能导致配置解析失败或用户名乱码。

需要实测。

Dominant language
C#
Stars
4.3k
Forks
148
Avg merge
1d 6h
Merged PRs (30d)
64

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PCL-Community/PCL-CE

All issues in PCL-Community/PCL-CE

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.