From: Philipp Hahn <hahn@univention.de>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH] VHD: Fix locale aware character encoding handling
Date: Thu, 12 Mar 2015 17:05:40 +0100 [thread overview]
Message-ID: <5501B954.7060806@univention.de> (raw)
In-Reply-To: <1426077038.21353.230.camel@citrix.com>
Hello Ian,
On 11.03.2015 13:30, Ian Campbell wrote:
> On Sun, 2015-03-08 at 11:54 +0100, Philipp Hahn wrote:
>> ASCII is 7 bit only, which does not work in UTF-8 environments:
>>> failed to read parent name
...
>> Don't check outbytesleft==0 as one UTF-8 characters get encoded into
>> 1..8 bytes, so it's perfectly fine (and expected) for the output to have
>> remaining bytes left.
...
> I'm a bit perplexed over why libvhd is even trying to interpret these
> bytes, I probably don't want to know...
If with bytes you mean the encoding used for the file-name: When
creating a snapshot the names are stored UTF-16 encoded for Windows and
in UTF-8 for MacOS-X compatibility. Therefore the utility needs to know
from which encoding to start.
If with bytes you mean the (input|output)-bytes left: yeah, gory UTF-8
details.
> Anyway: acked + applied, thanks.
Thanks. I hope it builds on BSD or wherever vhd-utils are also used.
Philipp
prev parent reply other threads:[~2015-03-12 16:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-08 10:54 [PATCH] VHD: Fix locale aware character encoding handling Philipp Hahn
2015-03-11 12:30 ` Ian Campbell
2015-03-12 16:05 ` Philipp Hahn [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=5501B954.7060806@univention.de \
--to=hahn@univention.de \
--cc=ian.campbell@citrix.com \
--cc=xen-devel@lists.xen.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.