public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] isofs "default NLS charset not used" fix
@ 2004-04-22 18:05 Marek Szuba
  0 siblings, 0 replies; only message in thread
From: Marek Szuba @ 2004-04-22 18:05 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 462 bytes --]

Hello again,

Since nobody has made any suggestions about the behaviour mentioned
above being a feature and not a bug, I took a liberty to fix it - if
changing one constant in one line of C code can be called "fixing".

The attached diff has been made against vanilla 2.6.5 kernel sources. A
bit of context changing will be in order for it to apply to 2.4.26
because of filesystem options structure type having changed; I haven't
looked at 2.2.

Regards,
-- 
MS

[-- Attachment #2: isofs-nls-2.6.patch --]
[-- Type: text/plain, Size: 456 bytes --]

--- linux/fs/isofs/inode.c	Fri Jan  9 11:58:50 2004
+++ linux/fs/isofs/inode-defaultnls.c	Thu Apr 22 18:47:12 2004
@@ -794,7 +794,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;
 		sbi->s_nls_iocharset = load_nls(p);
 		if (! sbi->s_nls_iocharset) {
 			/* Fail only if explicit charset specified */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-22 18:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 18:05 [PATCH] isofs "default NLS charset not used" fix Marek Szuba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox