summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/samsungypr/ypr0
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/samsungypr/ypr0')
-rw-r--r--firmware/target/hosted/samsungypr/ypr0/system-ypr0.c4
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)
139 /* kludge to make sure we get our wanted mount flags. This is needed 139 /* kludge to make sure we get our wanted mount flags. This is needed
140 * when the sd was already mounted before we booted */ 140 * when the sd was already mounted before we booted */
141 unmount_sd(); 141 unmount_sd();
142 char iocharset[64] = "iocharset=";
143 strlcat(iocharset, get_current_codepage_name_linux(), sizeof(iocharset));
144 ret = mount("/dev/mmcblk0p1", "/mnt/mmc", "vfat", 142 ret = mount("/dev/mmcblk0p1", "/mnt/mmc", "vfat",
145 MS_MGC_VAL | MS_SYNCHRONOUS | MS_RELATIME, 143 MS_MGC_VAL | MS_SYNCHRONOUS | MS_RELATIME,
146 iocharset); 144 "iocharset=utf8");
147 /* failure probably means the kernel does not support the iocharset. 145 /* failure probably means the kernel does not support the iocharset.
148 * retry without to load the default */ 146 * retry without to load the default */
149 if (ret == -1) 147 if (ret == -1)