[PATCH] NLS: Allow user to select 1:1 mapping

From: Petr Vandrovec (vandrove@vc.cvut.cz)
Date: Tue May 07 2002 - 11:00:43 EST

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

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 @@
 #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/

This archive was generated by hypermail 2b29 : Tue May 07 2002 - 22:00:30 EST