From 2109d524e86b50a181923df2407f039d3d512fa5 Mon Sep 17 00:00:00 2001 From: Roman Artiukhin Date: Mon, 3 Jun 2024 16:03:19 +0300 Subject: 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 --- firmware/target/hosted/samsungypr/ypr0/system-ypr0.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'firmware/target/hosted/samsungypr') 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) -- cgit v1.2.3