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

Petr Vandrovec (vandrove@vc.cvut.cz)
Tue, 7 May 2002 18:00:43 +0200


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/