All of lore.kernel.org
 help / color / mirror / Atom feed
From: NamJae Jeon <linkinjeon@gmail.com>
To: Amit Sahrawat <amit.sahrawat83@gmail.com>, hirofumi@mail.parknet.co.jp
Cc: linux-kernel@vger.kernel.org
Subject: Re: vfat filesystem: Why utf8=1 when iocharset=”utf8” was already there?
Date: Sat, 3 Sep 2011 18:09:38 +0900	[thread overview]
Message-ID: <CAKYAXd8gLN4C54Ey5uuK+_FY0U+tBf4aHntX=B+d0eNgY=rNsA@mail.gmail.com> (raw)
In-Reply-To: <CADDb1s1A38RyioiehzbRCgjFQT-MhfoD7cutxkn+h_cvUcZpfg@mail.gmail.com>

2011/9/2 Amit Sahrawat <amit.sahrawat83@gmail.com>:
> From my opinion both should support the same functionality as the
> motive behind this seems to introduce the complete support for utf8.
> But, I am surprised to see the behavior changes in the ‘2’ options.
> 1)      When using iocharset=”utf8” it makes vfat case sensitive, while
> this is not the case with using utf8=1
> 2)      Surrogate pair don’t work when using iocharset=”utf8”, because that
> traverses a path like this:
> xlate_to_uni()-->nls->char2uni()-->char2uni()-->utf8_to_utf32()
> After this it returns EINVAL because Surrogate pair correct code is
> greater than 0xFFFF (MAX_WCHAR_T – limit which is put)
> But this is not the case with utf8=1
> There are other places also where I can see usage different due to
> usage of char2uni()
>
> Can someone provide any help on this? Why do we have separate options
> for using utf8 and if utf8=1 smoothly supports proper working then why
> not discard iocharset=”utf8” ? and if this is not the case
> why was utf8=1 introduced?
>
> Please provide any guidance in this.
>
> Thanks & Regards,
> Amit Sahrawat
>

I also am wondering this issue for long time.
May be, Ogawa will know well.

  reply	other threads:[~2011-09-03  9:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-02 11:27 vfat filesystem: Why utf8=1 when iocharset=”utf8” was already there? Amit Sahrawat
2011-09-03  9:09 ` NamJae Jeon [this message]
     [not found]   ` <87hb4tvoth.fsf@devron.myhome.or.jp>
2011-09-05  0:04     ` NamJae Jeon
     [not found]       ` <87y5y3zuc5.fsf@devron.myhome.or.jp>
2011-09-05  4:39         ` NamJae Jeon

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='CAKYAXd8gLN4C54Ey5uuK+_FY0U+tBf4aHntX=B+d0eNgY=rNsA@mail.gmail.com' \
    --to=linkinjeon@gmail.com \
    --cc=amit.sahrawat83@gmail.com \
    --cc=hirofumi@mail.parknet.co.jp \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.