diff options
author | Roman Artiukhin <bahusdrive@gmail.com> | 2024-06-03 16:03:19 +0300 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-06-04 19:29:19 -0400 |
commit | 2109d524e86b50a181923df2407f039d3d512fa5 (patch) | |
tree | 4b1ee19973302bb5a283c65d55921ba36660a46e | |
parent | fb39d852b0bf8fe6673b4531c17cc73094dc3ab0 (diff) | |
download | rockbox-2109d524e8.tar.gz rockbox-2109d524e8.zip |
samsung yp-r0: Fix displaying non-Latin filenames on SD card
Supply iocharset=utf8 mount option. Otherwise, cyrillic symbols appear as question marks.
Change-Id: Ibf40a15ff429cfe2bf6e7970330870505e2470b7
-rw-r--r-- | firmware/target/hosted/samsungypr/ypr0/system-ypr0.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c index 2544174252..ee6dc48070 100644 --- a/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c +++ b/firmware/target/hosted/samsungypr/ypr0/system-ypr0.c @@ -139,11 +139,9 @@ static int mount_sd(void) /* kludge to make sure we get our wanted mount flags. This is needed * when the sd was already mounted before we booted */ unmount_sd(); - char iocharset[64] = "iocharset="; - strlcat(iocharset, get_current_codepage_name_linux(), sizeof(iocharset)); ret = mount("/dev/mmcblk0p1", "/mnt/mmc", "vfat", MS_MGC_VAL | MS_SYNCHRONOUS | MS_RELATIME, - iocharset); + "iocharset=utf8"); /* failure probably means the kernel does not support the iocharset. * retry without to load the default */ if (ret == -1) |