Discussion:
[PATCH] update-copyright: Handle use of ©
(too old to reply)
Mathieu Lirzin
2018-01-04 14:59:04 UTC
Permalink
Raw Message
* build-aux/update-copyright ($circle_c_re): Update regex to
handle use of © in headers.
---
ChangeLog | 6 ++++++
build-aux/update-copyright | 5 +++--
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3f2d8ce..13e868a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-01-04 Mathieu Lirzin <***@gnu.org>
+
+ update-copyright: Handle use of ©
+ * build-aux/update-copyright ($circle_c_re): Update regex to
+ handle use of © in headers.
+
2018-01-04 Tim Rühsen <***@gmx.de>

Fix -Wundef warning in user-included header lib/cdefs.h.
diff --git a/build-aux/update-copyright b/build-aux/update-copyright
index 5b11e30..ab29c63 100755
--- a/build-aux/update-copyright
+++ b/build-aux/update-copyright
@@ -3,7 +3,7 @@ eval '(exit $?0)' && eval 'exec perl -wS -0777 -pi "$0" "$@"'
if 0;
# Update an FSF copyright year list to include the current year.

-my $VERSION = '2017-09-13.06:45'; # UTC
+my $VERSION = '2018-01-04.14:48'; # UTC

# Copyright (C) 2009-2018 Free Software Foundation, Inc.
#
@@ -81,6 +81,7 @@ my $VERSION = '2017-09-13.06:45'; # UTC
# B. (c)
# C. @copyright{}
# D. &copy;
+# E. ©
#
# 4. The "Copyright" appears at the beginning of a line, except that it
# may be prefixed by any sequence (e.g., a comment) of no more than
@@ -124,7 +125,7 @@ use strict;
use warnings;

my $copyright_re = 'Copyright';
-my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|&copy;)';
+my $circle_c_re = '(?:\([cC]\)|@copyright\{}|\\\\\(co|&copy;|©)';
my $holder = $ENV{UPDATE_COPYRIGHT_HOLDER};
$holder ||= 'Free Software Foundation, Inc.';
my $prefix_max = 5;
--
2.9.5
Bruno Haible
2018-01-05 21:11:09 UTC
Permalink
Raw Message
Mathieu Lirzin wrote:
> +2018-01-04 Mathieu Lirzin <***@gnu.org>
> +
> + update-copyright: Handle use of ©
> + * build-aux/update-copyright ($circle_c_re): Update regex to
> + handle use of © in headers.

Thanks. Applied. And I added a 'coding: utf-8' marker to this file
(and a couple of other files as well), to ensure that Emacs users don't
accidentally convert this file to a different encoding.

Bruno
Loading...