[lkml]   [2002]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
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

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
More majordomo info at
Please read the FAQ at
 \ /
  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