lkml.org 
[lkml]   [2000]   [Sep]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: NLS handling in Filesystem code
On Mon, 11 Sep 2000 tytso@mit.edu wrote:

> ISOFS ignores CONFIG_NLS_DEFAULT, and hardcodes the use of iso8859-1 as
> the default. Is this the correct behaviour?

I don't think so. 2.2 uses CONFIG_NLS_DEFAULT for 'iocharset'. Untested,
obvious patch for 2.4.0-test8 below to do the same as 2.2.

/Urban

--- linux-2.4.0-test8-orig/fs/isofs/inode.c Sat Aug 12 21:04:15 2000
+++ linux/fs/isofs/inode.c Mon Sep 11 19:17:13 2000
@@ -737,7 +737,7 @@

#ifdef CONFIG_JOLIET
if (joliet_level && opt.utf8 == 0) {
- char * p = opt.iocharset ? opt.iocharset : "iso8859-1";
+ char * p = opt.iocharset ? opt.iocharset : CONFIG_NLS_DEFAULT;
s->u.isofs_sb.s_nls_iocharset = load_nls(p);
if (! s->u.isofs_sb.s_nls_iocharset) {
/* Fail only if explicit charset specified */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.046 / U:8.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site