Make ChangeLog UTF-8

View: New views
3 Messages — Rating Filter:   Alert me  

Make ChangeLog UTF-8

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm installing a patch to enforce UTF-8 encoding in ChangeLog; Ralf converted
it a while ago[1] (possibly by accident), but without giving emacs a hint.  I
finally noticed it today when I nearly converted it back to Latin-1 (cygwin UTF-
8 support is less than stellar).

[1] http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=b83aa7

From: Eric Blake <ebb9@...>
Date: Fri, 7 Nov 2008 08:57:34 -0700
Subject: [PATCH] Use UTF-8 in ChangeLog.

* ChangeLog: Enforce UTF-8 encoding.
The file was converted from Latin-1 by commit b83aa7.

Signed-off-by: Eric Blake <ebb9@...>
---
 ChangeLog |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9c92ab2..e463e2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-11-07  Eric Blake  <ebb9@...>
+
+ * ChangeLog: Enforce UTF-8 encoding.
+
 2008-11-06  Eric Blake  <ebb9@...>
 
  Skip preprocessor check in AC_CHECK_HEADERS_ONCE.
@@ -17958,7 +17962,11 @@
 
  -----
 
- Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free
+ Local Variables:
+ coding: utf-8
+ End:
+
+ Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free
  Software Foundation, Inc.
 
  Copying and distribution of this file, with or without
--
1.6.0.2






Re: Make ChangeLog UTF-8

by Ralf Wildenhues :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Eric,

* Eric Blake wrote on Fri, Nov 07, 2008 at 05:01:03PM CET:
> I'm installing a patch to enforce UTF-8 encoding in ChangeLog; Ralf converted
> it a while ago[1] (possibly by accident), but without giving emacs a hint.

I was aware of it, so it wasn't really an accident: it bothered me that
the ChangeLog entry and the commit entry should be encoded differently,
more so with me generating the latter from the former.  I guess I should
have separated the change, and announced it.  But I didn't think it
would be problematic for editors to cope (at least for mine it wasn't
;-).

> I finally noticed it today when I nearly converted it back to Latin-1
> (cygwin UTF- 8 support is less than stellar).

Oh.  Is that a problem for you?

Thanks,
Ralf

> [1] http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=b83aa7



Re: Make ChangeLog UTF-8

by Eric Blake :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Ralf Wildenhues on 11/9/2008 12:26 PM:
>
>> I finally noticed it today when I nearly converted it back to Latin-1
>> (cygwin UTF- 8 support is less than stellar).
>
> Oh.  Is that a problem for you?

No, I don't have any technical problem using UTF-8.  I had already
converted THANKS to UTF-8 in an earlier patch, using iconv on cygwin to do
the conversion.  And cygwin emacs does a decent job with UTF-8, provided
that it is given the hint that a file is encoded.  But so far, cygwin
doesn't have any UTF-8 capable console, so viewing the patch with 'git
log' displays two bytes in Latin-1 rather than one character from a
Unicode font; but not a show-stopper from using UTF-8 on platforms that
are better set up for i18n.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkXWYoACgkQ84KuGfSFAYCuMACgtnhWA6x0+ymlWBfQjjSnkKsw
hskAoNHkHm5iT+Dj5qxbUdByWLRdNLND
=b08p
-----END PGP SIGNATURE-----


LightInTheBox - Buy quality products at wholesale price!