fix(smb-backend): add explicit utf8 charset encoding (#768)

This commit is contained in:
Nico 2026-04-09 21:39:19 +02:00 committed by GitHub
parent 979e494e75
commit 4872029b87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ const mount = async (config: BackendConfig, path: string) => {
const source = `//${config.server}/${config.share}`;
const { uid, gid } = os.userInfo();
const options = [`port=${config.port}`, `uid=${uid}`, `gid=${gid}`];
const options = [`port=${config.port}`, `uid=${uid}`, `gid=${gid}`, "iocharset=utf8"];
if (config.guest) {
options.push("username=guest", "password=");