patch-2.2.16 linux/fs/ntfs/fs.c

Next file: linux/fs/ntfs/support.c
Previous file: linux/fs/nls/nls_koi8-r.c
Back to the patch index
Back to the overall index

diff -urN v2.2.15/linux/fs/ntfs/fs.c linux/fs/ntfs/fs.c
@@ -360,8 +360,11 @@
 	if((vol->nct & (nct_uni_xlate | nct_map | nct_utf8))==0)
 		/* default to UTF-8 */
 		vol->nct=nct_utf8;
-	if(!vol->nls_map)
+	if(!vol->nls_map){
 		vol->nls_map=load_nls_default();
+		if (vol->nls_map)
+			vol->nct=nct_map | (vol->nct&nct_uni_xlate);
+	}
 	return 1;
 
  needs_arg:

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)