From: Jan Hudec <bulb@ucw.cz>
To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Cc: chaffee@cs.berkeley.edu, urban@teststation.com
Subject: [bug?] How to stuff 21 bits in __u16
Date: Tue, 1 Jul 2003 19:18:58 +0200 [thread overview]
Message-ID: <20030701171858.GB9668@vagabond> (raw)
Hello All,
I have a question to definition from nls.h (both 2.4.21 and 2.5.56):
The utf-8 decoding stuff seems to handle all characters up to
0x7fff_ffff. But then it supposes to store them in wchar_t and it is
defined as __u16. To me it seems like a bug (which should moreover be
trivial to fix with something like:)
--- linux-2.4.21/include/linux/nls.h.orig 2003-06-30 10:12:37.000000000 +0200
+++ linux-2.4.21/include/linux/nls.h 2003-07-01 19:07:17.000000000 +0200
@@ -4,7 +4,7 @@
#include <linux/init.h>
/* unicode character */
-typedef __u16 wchar_t;
+typedef __u32 wchar_t;
struct nls_table {
char *charset;
-------------------------------------------------------------------------------
Jan 'Bulb' Hudec <bulb@ucw.cz>
reply other threads:[~2003-07-01 17:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030701171858.GB9668@vagabond \
--to=bulb@ucw.cz \
--cc=chaffee@cs.berkeley.edu \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=urban@teststation.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®