linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matthew Wilcox <willy@infradead.org>, Jan Kara <jack@suse.cz>,
	linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: [GIT PULL] UDF support for UTF-16
Date: Fri, 8 Jun 2018 13:56:50 +0200	[thread overview]
Message-ID: <20180608115649.w66vhn63laovrjsi@quack2.suse.cz> (raw)
In-Reply-To: <CA+55aFzCQxL-dHjZoNJ_So-mOsd3T0k78nGsmbG66EN90nvdfw@mail.gmail.com>

On Thu 07-06-18 10:15:57, Linus Torvalds wrote:
> On Thu, Jun 7, 2018 at 9:59 AM Matthew Wilcox <willy@infradead.org> wrote:
> >
> > Yeah, it's a totally broken format, but we shouldn't be thinking that
> > filenames which come to us in UTF16 are actually in UCS2.
> 
> Ok, old fixed-2-byte UCS2 is certainly even worse than UTF16, so no
> argument on that side.
> 
> I was more wondering who actually *does* this, but it sounds like it
> was a mostly just that we used to do the old-style UCS-2, and this is
> extending it to the slightly less broken "extended UCS-2" aka UTF-16.
> 
> I'd just have liked to see some more background in the logs, because
> this seemed to me such an odd change to do that it made me go "why
> would anybody ever care?".
> 
> But I guess MS (and maybe even OSX) _)still_ haven't gotten the memo
> on utf-8 and actually use UTF-16..
> 
> Oh well.

Yes, Windows still apparently use UTF-16 (at least according to a user
report I've got which motivated this work) and the OSTA UDF standard
defines that filenames in UDF are in "OSTA Compressed Unicode" which may be
actually UTF-16 if the program creating the filesystem image chooses so.

I agree that the changelogs should have mentioned this. My bad.

								Honza
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

      reply	other threads:[~2018-06-08 11:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07 15:31 [GIT PULL] UDF support for UTF-16 Jan Kara
2018-06-07 16:50 ` Linus Torvalds
2018-06-07 16:59   ` Matthew Wilcox
2018-06-07 17:15     ` Linus Torvalds
2018-06-08 11:56       ` Jan Kara [this message]

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=20180608115649.w66vhn63laovrjsi@quack2.suse.cz \
    --to=jack@suse.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=willy@infradead.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).