From: Steve French <smfrench@austin.rr.com>
To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: charset2upper broken
Date: Mon, 22 May 2006 16:19:10 -0500 [thread overview]
Message-ID: <44722ACE.3040500@austin.rr.com> (raw)
Charset2upper is broken, at least for utf8 (see line 41 of nls_utf8.c)
Seems straightforward to fix it for the key characters a-z (0x61-0x7a),
unless the uppercasing rules are stranger than I think - especially
since other places have it right e.g. nls_base.c seems to have it right
in its charset2upper.
I need to uppercase passwords for cifs to be able to mount to older
servers (e.g. win9x and OS/2) but since I can't tell that
utf8->charset2upper is broken I can't know when to fall back to the
simpleminded way of uppercasing that smbfs does.
I wish we could make theis charset2upper (and charset2lower probably)
optional so it could be set to null when broken or at least return an
error for those cp that are broken such as utf8 so we could fall back
... (and unfortunately utf8 is the default ...)
Apparently this breaks other guys too see below ...
On Sat, Oct 29, 2005 at 12:07:40AM +0900, OGAWA Hirofumi wrote:
>/ OGAWA Hirofumi <hirofumi@xxxxxxxxxxxxxxxxxx> writes:/
>/ /
>/ > Horms <horms@xxxxxxxxxxxx> writes:/
>/ >/
>/ >> static struct nls_table table = {/
>/ >> .charset = "utf8",/
>/ >> .uni2char = uni2char,/
>/ >> .char2uni = char2uni,/
>/ >> .charset2lower = identity, /* no conversion *//
>/ >> .charset2upper = identity,/
>/ >> .owner = THIS_MODULE,/
>/ >> };/
>/ >>/
>/ >> I guess it is charset2lower or charset2upper that vfat is calling,/
>/ >> which make no conversion, thus leading to the problem I outlined
above./
>/ >>/
>/ >> My question is: Is this behaviour correct, or is it a bug?/
>/ >/
>/ > This is known bug. For fixing this bug cleanly, we will need to much/
>/ > change the both of nls and filesystems./
>/ /
>/ And fatfs has "utf8" option, probably the behavior is preferable than/
>/ "iocharset=utf8". However, unfortunately "utf8" has problem too./
next reply other threads:[~2006-05-22 21:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-22 21:19 Steve French [this message]
2006-05-24 4:31 ` charset2upper broken Alexander E. Patrakov
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=44722ACE.3040500@austin.rr.com \
--to=smfrench@austin.rr.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).