* [Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding
@ 2011-12-03 9:45 Stefan Weil
2011-12-03 10:34 ` Peter Maydell
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Stefan Weil @ 2011-12-03 9:45 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-trivial, Stefan Weil
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 688 bytes --]
Most QEMU files either are pure ASCII or use UTF-8.
Convert this keymap file which still used ISO-8859-1 to UTF-8.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
pc-bios/keymaps/is | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pc-bios/keymaps/is b/pc-bios/keymaps/is
index 21dc1fd..935ac1d 100644
--- a/pc-bios/keymaps/is
+++ b/pc-bios/keymaps/is
@@ -1,4 +1,4 @@
-# 2004-03-16 Halldór Guðmundsson and Morten Lange
+# 2004-03-16 Halldór Guðmundsson and Morten Lange
# Keyboard definition file for the Icelandic keyboard
# to be used in rdesktop 1.3.x ( See rdesktop.org)
# generated from XKB map de, and changed manually
--
1.7.0.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding
2011-12-03 9:45 [Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding Stefan Weil
@ 2011-12-03 10:34 ` Peter Maydell
2011-12-06 10:37 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
2011-12-07 12:13 ` [Qemu-devel] " Zhi Yong Wu
2 siblings, 0 replies; 6+ messages in thread
From: Peter Maydell @ 2011-12-03 10:34 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-trivial, qemu-devel
On 3 December 2011 09:45, Stefan Weil <sw@weilnetz.de> wrote:
> Most QEMU files either are pure ASCII or use UTF-8.
> Convert this keymap file which still used ISO-8859-1 to UTF-8.
Good catch -- I'd assumed the keymap files were binary :-)
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] Convert keymap file to UTF-8 encoding
2011-12-03 9:45 [Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding Stefan Weil
2011-12-03 10:34 ` Peter Maydell
@ 2011-12-06 10:37 ` Stefan Hajnoczi
2011-12-07 12:13 ` [Qemu-devel] " Zhi Yong Wu
2 siblings, 0 replies; 6+ messages in thread
From: Stefan Hajnoczi @ 2011-12-06 10:37 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-trivial, qemu-devel
On Sat, Dec 03, 2011 at 10:45:25AM +0100, Stefan Weil wrote:
> Most QEMU files either are pure ASCII or use UTF-8.
> Convert this keymap file which still used ISO-8859-1 to UTF-8.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
> pc-bios/keymaps/is | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding
2011-12-03 9:45 [Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding Stefan Weil
2011-12-03 10:34 ` Peter Maydell
2011-12-06 10:37 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
@ 2011-12-07 12:13 ` Zhi Yong Wu
2011-12-07 12:31 ` Peter Maydell
2 siblings, 1 reply; 6+ messages in thread
From: Zhi Yong Wu @ 2011-12-07 12:13 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-trivial, qemu-devel
On Sat, Dec 3, 2011 at 5:45 PM, Stefan Weil <sw@weilnetz.de> wrote:
> Most QEMU files either are pure ASCII or use UTF-8.
> Convert this keymap file which still used ISO-8859-1 to UTF-8.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
> pc-bios/keymaps/is | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/pc-bios/keymaps/is b/pc-bios/keymaps/is
> index 21dc1fd..935ac1d 100644
> --- a/pc-bios/keymaps/is
> +++ b/pc-bios/keymaps/is
> @@ -1,4 +1,4 @@
> -# 2004-03-16 Halldór Guðmundsson and Morten Lange
Can you let me know how you see that it is ISO-8859-1 coding, not
UTF-8? They look same to me.
> +# 2004-03-16 Halldór Guðmundsson and Morten Lange
> # Keyboard definition file for the Icelandic keyboard
> # to be used in rdesktop 1.3.x ( See rdesktop.org)
> # generated from XKB map de, and changed manually
> --
> 1.7.0.4
>
>
--
Regards,
Zhi Yong Wu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding
2011-12-07 12:13 ` [Qemu-devel] " Zhi Yong Wu
@ 2011-12-07 12:31 ` Peter Maydell
2011-12-07 12:37 ` Zhi Yong Wu
0 siblings, 1 reply; 6+ messages in thread
From: Peter Maydell @ 2011-12-07 12:31 UTC (permalink / raw)
To: Zhi Yong Wu; +Cc: qemu-trivial, Stefan Weil, qemu-devel
On 7 December 2011 12:13, Zhi Yong Wu <zwu.kernel@gmail.com> wrote:
> Can you let me know how you see that it is ISO-8859-1 coding, not
> UTF-8? They look same to me.
This gets a bit confusing because mail clients and
web browsers tend to try to fix up what they think are
wrongly labelled encodings, so for example in my mail
client the diff looks like it is not changing anything.
However if you look at the file in the current git repo
with a hex editor:
00000000 23 20 32 30 30 34 2d 30 33 2d 31 36 20 48 61 6c |# 2004-03-16 Hal|
00000010 6c 64 f3 72 20 47 75 f0 6d 75 6e 64 73 73 6f 6e |ld.r Gu.mundsson|
you can see that there is an 0xf3 at offset 0x12, which
is LATIN SMALL LETTER O WITH ACUTE in ISO-8859-1. ISO-8859-1
is a one-byte-per-character encoding which is why it has a
raw 0xf3 here. However although the character is at Unicode
codepoint 0xf3 as well, the encoding of this in UTF-8 is
the two byte sequence 0xc3 0xb3. Similarly the 0xf0 LATIN
SMALL LETTER ETH has to be encoded as 0xc3 0xb0.
If you look at the raw text of Stefan's email it reads:
-# 2004-03-16 Halld=F3r Gu=F0mundsson and Morten Lange
+# 2004-03-16 Halld=C3=B3r Gu=C3=B0mundsson and Morten Lange
which is the quoted-printable encoding of this change.
-- PMM
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding
2011-12-07 12:31 ` Peter Maydell
@ 2011-12-07 12:37 ` Zhi Yong Wu
0 siblings, 0 replies; 6+ messages in thread
From: Zhi Yong Wu @ 2011-12-07 12:37 UTC (permalink / raw)
To: Peter Maydell; +Cc: qemu-trivial, Stefan Weil, qemu-devel
On Wed, Dec 7, 2011 at 8:31 PM, Peter Maydell <peter.maydell@linaro.org> wrote:
> On 7 December 2011 12:13, Zhi Yong Wu <zwu.kernel@gmail.com> wrote:
>> Can you let me know how you see that it is ISO-8859-1 coding, not
>> UTF-8? They look same to me.
>
> This gets a bit confusing because mail clients and
> web browsers tend to try to fix up what they think are
> wrongly labelled encodings, so for example in my mail
> client the diff looks like it is not changing anything.
> However if you look at the file in the current git repo
> with a hex editor:
> 00000000 23 20 32 30 30 34 2d 30 33 2d 31 36 20 48 61 6c |# 2004-03-16 Hal|
> 00000010 6c 64 f3 72 20 47 75 f0 6d 75 6e 64 73 73 6f 6e |ld.r Gu.mundsson|
>
> you can see that there is an 0xf3 at offset 0x12, which
> is LATIN SMALL LETTER O WITH ACUTE in ISO-8859-1. ISO-8859-1
> is a one-byte-per-character encoding which is why it has a
> raw 0xf3 here. However although the character is at Unicode
> codepoint 0xf3 as well, the encoding of this in UTF-8 is
> the two byte sequence 0xc3 0xb3. Similarly the 0xf0 LATIN
> SMALL LETTER ETH has to be encoded as 0xc3 0xb0.
>
> If you look at the raw text of Stefan's email it reads:
> -# 2004-03-16 Halld=F3r Gu=F0mundsson and Morten Lange
> +# 2004-03-16 Halld=C3=B3r Gu=C3=B0mundsson and Morten Lange
>
> which is the quoted-printable encoding of this change.
thanks for your explain.
>
> -- PMM
--
Regards,
Zhi Yong Wu
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-12-07 12:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-03 9:45 [Qemu-devel] [PATCH] Convert keymap file to UTF-8 encoding Stefan Weil
2011-12-03 10:34 ` Peter Maydell
2011-12-06 10:37 ` [Qemu-devel] [Qemu-trivial] " Stefan Hajnoczi
2011-12-07 12:13 ` [Qemu-devel] " Zhi Yong Wu
2011-12-07 12:31 ` Peter Maydell
2011-12-07 12:37 ` Zhi Yong Wu
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).