lkml.org 
[lkml]   [2002]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] NLS: Allow user to select 1:1 mapping
Hi Linus,
patch below allows user to select 'default' encoding,
which has defined mapping for each of 255 byte values, so
one can use it as a fallback when it finds filesystem
with unknown encoding (EBCDIC for example) just to get
characters through filesystem.
Petr Vandrovec
vandrove@vc.cvut.cz



diff -urdN linux/fs/nls/nls_base.c linux/fs/nls/nls_base.c
--- linux/fs/nls/nls_base.c Mon May 6 03:37:54 2002
+++ linux/fs/nls/nls_base.c Tue May 7 10:06:53 2002
@@ -20,7 +20,8 @@
#endif
#include <linux/spinlock.h>

-static struct nls_table *tables;
+static struct nls_table default_table;
+static struct nls_table *tables = &default_table;
static spinlock_t nls_lock = SPIN_LOCK_UNLOCKED;

/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.042 / U:20.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site