From adc8caa03321108dde3f089dadf573aadf388fef Mon Sep 17 00:00:00 2001 From: szaka Date: Mon, 11 Dec 2006 21:15:45 +0000 Subject: [PATCH] parse_mount_options(): point to some help regards to locale setup --- src/ntfs-3g.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index f82b25c1..e260e4c6 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -133,6 +133,11 @@ static char def_opts[] = "silent,allow_other,"; static ntfs_fuse_context_t *ctx; static u32 ntfs_sequence; +static const char *locale_msg = +"WARNING: Couldn't set locale to '%s' thus some file names may not\n" +" be correct or visible. Please see the potential solution at\n" +" http://www.ntfs-3g.org/support.html#locale\n"; + static __inline__ void ntfs_fuse_mark_free_space_outdated(void) { /* Mark information about free MFT record and clusters outdated. */ @@ -1738,9 +1743,7 @@ static char *parse_mount_options(const char *orig_opts) goto err_exit; } if (!setlocale(LC_ALL, val)) - ntfs_log_error("Couldn't set locale to %s thus " - "you may not see properly or " - "at all some files.\n", val); + ntfs_log_error(locale_msg, val); } else if (!strcmp(opt, "streams_interface")) { if (!val) { ntfs_log_error("'streams_interface' option "