linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [rfc] drop "coding: UTF-8" header
@ 2020-07-26  6:23 Mike Frysinger
  2020-08-13  7:38 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2020-07-26  6:23 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-man

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=8bit, Size: 9327 bytes --]

From: Mike Frysinger <vapier@chromium.org>

This header is used inconsistently -- man pages are UTF-8 encoded
but not setting this marker.  It's only respected by the man-db
package, and seems a bit anachronistic at this point when UTF-8
is the standard default nowadays.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 man1/iconv.1                | 2 --
 man3/mbstowcs.3             | 1 -
 man3/newlocale.3            | 1 -
 man5/locale.5               | 1 -
 man7/armscii-8.7            | 1 -
 man7/charsets.7             | 1 -
 man7/cp1251.7               | 1 -
 man7/cp1252.7               | 1 -
 man7/iso_8859-1.7           | 1 -
 man7/iso_8859-10.7          | 1 -
 man7/iso_8859-11.7          | 1 -
 man7/iso_8859-13.7          | 1 -
 man7/iso_8859-14.7          | 1 -
 man7/iso_8859-15.7          | 1 -
 man7/iso_8859-16.7          | 1 -
 man7/iso_8859-2.7           | 1 -
 man7/iso_8859-3.7           | 1 -
 man7/iso_8859-4.7           | 1 -
 man7/iso_8859-5.7           | 1 -
 man7/iso_8859-6.7           | 1 -
 man7/iso_8859-7.7           | 1 -
 man7/iso_8859-8.7           | 1 -
 man7/iso_8859-9.7           | 1 -
 man7/koi8-r.7               | 1 -
 man7/koi8-u.7               | 1 -
 man8/iconvconfig.8          | 2 --
 scripts/convert_to_utf_8.sh | 2 +-
 27 files changed, 1 insertion(+), 29 deletions(-)

diff --git a/man1/iconv.1 b/man1/iconv.1
index 3649e6dbe12e..8207e1cea3d6 100644
--- a/man1/iconv.1
+++ b/man1/iconv.1
@@ -1,5 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
-.\"
 .\" Copyright (C) 2014 Marko Myllynen <myllynen@redhat.com>
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man3/mbstowcs.3 b/man3/mbstowcs.3
index f92ab681c56f..cf650506eb80 100644
--- a/man3/mbstowcs.3
+++ b/man3/mbstowcs.3
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
 .\" and Copyright 2014 Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
diff --git a/man3/newlocale.3 b/man3/newlocale.3
index 2d71f1a8cf51..86b961fc628d 100644
--- a/man3/newlocale.3
+++ b/man3/newlocale.3
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
 .\"
 .\" %%%LICENSE_START(VERBATIM)
diff --git a/man5/locale.5 b/man5/locale.5
index 85e548bc17f3..f6b63da9d956 100644
--- a/man5/locale.5
+++ b/man5/locale.5
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright (C) 1994  Jochen Hein (Hein@Student.TU-Clausthal.de)
 .\" Copyright (C) 2008  Petr Baudis (pasky@suse.cz)
 .\" Copyright (C) 2014 Michael Kerrisk <mtk@manpages@gmail.com>
diff --git a/man7/armscii-8.7 b/man7/armscii-8.7
index 94c51e3680c0..163c81d5b27f 100644
--- a/man7/armscii-8.7
+++ b/man7/armscii-8.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009  Lefteris Dimitroulakis <edimitro at tee.gr>
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/charsets.7 b/man7/charsets.7
index 439ea7343708..79d1c1442238 100644
--- a/man7/charsets.7
+++ b/man7/charsets.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright (c) 1996 Eric S. Raymond <esr@thyrsus.com>
 .\" and Copyright (c) Andries Brouwer <aeb@cwi.nl>
 .\"
diff --git a/man7/cp1251.7 b/man7/cp1251.7
index 382de42c8510..fdc1af847300 100644
--- a/man7/cp1251.7
+++ b/man7/cp1251.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009    Lefteris Dimitroulakis (edimitro@tee.gr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/cp1252.7 b/man7/cp1252.7
index 07ac84bf5d19..759a4061d0bb 100644
--- a/man7/cp1252.7
+++ b/man7/cp1252.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2014 (C) Marko Myllynen <myllynen@redhat.com>
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-1.7 b/man7/iso_8859-1.7
index 202768231f51..8c57bcfbc3eb 100644
--- a/man7/iso_8859-1.7
+++ b/man7/iso_8859-1.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 1993-1995 Daniel Quinlan (quinlan@yggdrasil.com)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-10.7 b/man7/iso_8859-10.7
index 82c8eeda5f7f..02f89221cdb0 100644
--- a/man7/iso_8859-10.7
+++ b/man7/iso_8859-10.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009    Lefteris Dimitroulakis (edimitro@tee.gr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-11.7 b/man7/iso_8859-11.7
index 073ddc65771e..afc931b00e98 100644
--- a/man7/iso_8859-11.7
+++ b/man7/iso_8859-11.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009 Lefteris Dimitroulakis <edimitro at tee.gr>
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-13.7 b/man7/iso_8859-13.7
index 06de48839aa8..6a5304b11a51 100644
--- a/man7/iso_8859-13.7
+++ b/man7/iso_8859-13.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009   Lefteris Dimitroulakis (edimitro@tee.gr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-14.7 b/man7/iso_8859-14.7
index 592bd0838e05..cb39a9e915fd 100644
--- a/man7/iso_8859-14.7
+++ b/man7/iso_8859-14.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009   Lefteris Dimitroulakis (edimitro@tee.gr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-15.7 b/man7/iso_8859-15.7
index 5e71a41aae60..9946b0bc266f 100644
--- a/man7/iso_8859-15.7
+++ b/man7/iso_8859-15.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 1993-1995 Daniel Quinlan (quinlan@yggdrasil.com)
 .\" Copyright 1999      Dimitri Papadopoulos (dpo@club-internet.fr)
 .\"
diff --git a/man7/iso_8859-16.7 b/man7/iso_8859-16.7
index 8d9b5a259586..5bf518279b07 100644
--- a/man7/iso_8859-16.7
+++ b/man7/iso_8859-16.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2002 Ionel Mugurel Ciobîcă (IMCiobica@netscape.net)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-2.7 b/man7/iso_8859-2.7
index 095f0612d0ca..a9e478b58d66 100644
--- a/man7/iso_8859-2.7
+++ b/man7/iso_8859-2.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 1999 Roman Maurer (roman.maurer@hermes.si)
 .\" Copyright 1993-1995 Daniel Quinlan (quinlan@yggdrasil.com)
 .\"
diff --git a/man7/iso_8859-3.7 b/man7/iso_8859-3.7
index 5f2605852f3d..b9e00fd10ed9 100644
--- a/man7/iso_8859-3.7
+++ b/man7/iso_8859-3.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009  Lefteris Dimitroulakis (edimitro@tee.gr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-4.7 b/man7/iso_8859-4.7
index 6eefaef93989..4ef5c0e05a44 100644
--- a/man7/iso_8859-4.7
+++ b/man7/iso_8859-4.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009  Lefteris Dimitroulakis (edimitro@tee.gr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-5.7 b/man7/iso_8859-5.7
index 7e3c8cec1087..1396b36de92e 100644
--- a/man7/iso_8859-5.7
+++ b/man7/iso_8859-5.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009   Lefteris Dimitroulakis (edimitro@tee.gr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-6.7 b/man7/iso_8859-6.7
index 5e1608a2e342..d2c5aea085d5 100644
--- a/man7/iso_8859-6.7
+++ b/man7/iso_8859-6.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009  Lefteris Dimitroulakis (edimitro@tee.gr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-7.7 b/man7/iso_8859-7.7
index f59570888089..97bb728d803b 100644
--- a/man7/iso_8859-7.7
+++ b/man7/iso_8859-7.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 1999      Dimitri Papadopoulos (dpo@club-internet.fr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-8.7 b/man7/iso_8859-8.7
index b7e1c5f7b53a..bdfaa571cad7 100644
--- a/man7/iso_8859-8.7
+++ b/man7/iso_8859-8.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009   Lefteris Dimitroulakis (edimitro@tee.gr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/iso_8859-9.7 b/man7/iso_8859-9.7
index b97efc29cf15..705971e454c9 100644
--- a/man7/iso_8859-9.7
+++ b/man7/iso_8859-9.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2002      Dimitri Papadopoulos (dpo@club-internet.fr)
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/koi8-r.7 b/man7/koi8-r.7
index 7ee9e2927d42..7d1977eb3832 100644
--- a/man7/koi8-r.7
+++ b/man7/koi8-r.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2001      Alexey Mahotkin <alexm@hsys.msk.ru>
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man7/koi8-u.7 b/man7/koi8-u.7
index 0c56e949f3e4..987918724d7f 100644
--- a/man7/koi8-u.7
+++ b/man7/koi8-u.7
@@ -1,4 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
 .\" Copyright 2009  Lefteris Dimitroulakis <edimitro at tee.gr>
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/man8/iconvconfig.8 b/man8/iconvconfig.8
index 2cc3536f4c11..b572829659b5 100644
--- a/man8/iconvconfig.8
+++ b/man8/iconvconfig.8
@@ -1,5 +1,3 @@
-'\" t -*- coding: UTF-8 -*-
-.\"
 .\" Copyright (C) 2014 Marko Myllynen <myllynen@redhat.com>
 .\"
 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
diff --git a/scripts/convert_to_utf_8.sh b/scripts/convert_to_utf_8.sh
index b8a5e83baee1..28f5a72cf8c7 100755
--- a/scripts/convert_to_utf_8.sh
+++ b/scripts/convert_to_utf_8.sh
@@ -33,7 +33,7 @@ fi
 out_dir="$1"
 shift
 
-enc_line="'\\\" t -*- coding: UTF-8 -*-"
+enc_line=""
 
 for f in "$@"; do
     enc=$(file -bi "$f" | cut -d = -f 2)
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] [rfc] drop "coding: UTF-8" header
  2020-07-26  6:23 [PATCH] [rfc] drop "coding: UTF-8" header Mike Frysinger
@ 2020-08-13  7:38 ` Michael Kerrisk (man-pages)
  2020-08-13 11:07   ` G. Branden Robinson
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-08-13  7:38 UTC (permalink / raw)
  To: Mike Frysinger; +Cc: mtk.manpages, linux-man

Hi Mike,

On 7/26/20 8:23 AM, Mike Frysinger wrote:
> From: Mike Frysinger <vapier@chromium.org>
> 
> This header is used inconsistently -- man pages are UTF-8 encoded
> but not setting this marker.  It's only respected by the man-db
> package, and seems a bit anachronistic at this point when UTF-8
> is the standard default nowadays.

Thanks. Patch applied.

Cheers,

Michael

> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  man1/iconv.1                | 2 --
>  man3/mbstowcs.3             | 1 -
>  man3/newlocale.3            | 1 -
>  man5/locale.5               | 1 -
>  man7/armscii-8.7            | 1 -
>  man7/charsets.7             | 1 -
>  man7/cp1251.7               | 1 -
>  man7/cp1252.7               | 1 -
>  man7/iso_8859-1.7           | 1 -
>  man7/iso_8859-10.7          | 1 -
>  man7/iso_8859-11.7          | 1 -
>  man7/iso_8859-13.7          | 1 -
>  man7/iso_8859-14.7          | 1 -
>  man7/iso_8859-15.7          | 1 -
>  man7/iso_8859-16.7          | 1 -
>  man7/iso_8859-2.7           | 1 -
>  man7/iso_8859-3.7           | 1 -
>  man7/iso_8859-4.7           | 1 -
>  man7/iso_8859-5.7           | 1 -
>  man7/iso_8859-6.7           | 1 -
>  man7/iso_8859-7.7           | 1 -
>  man7/iso_8859-8.7           | 1 -
>  man7/iso_8859-9.7           | 1 -
>  man7/koi8-r.7               | 1 -
>  man7/koi8-u.7               | 1 -
>  man8/iconvconfig.8          | 2 --
>  scripts/convert_to_utf_8.sh | 2 +-
>  27 files changed, 1 insertion(+), 29 deletions(-)
> 
> diff --git a/man1/iconv.1 b/man1/iconv.1
> index 3649e6dbe12e..8207e1cea3d6 100644
> --- a/man1/iconv.1
> +++ b/man1/iconv.1
> @@ -1,5 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
> -.\"
>  .\" Copyright (C) 2014 Marko Myllynen <myllynen@redhat.com>
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man3/mbstowcs.3 b/man3/mbstowcs.3
> index f92ab681c56f..cf650506eb80 100644
> --- a/man3/mbstowcs.3
> +++ b/man3/mbstowcs.3
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
>  .\" and Copyright 2014 Michael Kerrisk <mtk.manpages@gmail.com>
>  .\"
> diff --git a/man3/newlocale.3 b/man3/newlocale.3
> index 2d71f1a8cf51..86b961fc628d 100644
> --- a/man3/newlocale.3
> +++ b/man3/newlocale.3
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright (C) 2014 Michael Kerrisk <mtk.manpages@gmail.com>
>  .\"
>  .\" %%%LICENSE_START(VERBATIM)
> diff --git a/man5/locale.5 b/man5/locale.5
> index 85e548bc17f3..f6b63da9d956 100644
> --- a/man5/locale.5
> +++ b/man5/locale.5
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright (C) 1994  Jochen Hein (Hein@Student.TU-Clausthal.de)
>  .\" Copyright (C) 2008  Petr Baudis (pasky@suse.cz)
>  .\" Copyright (C) 2014 Michael Kerrisk <mtk@manpages@gmail.com>
> diff --git a/man7/armscii-8.7 b/man7/armscii-8.7
> index 94c51e3680c0..163c81d5b27f 100644
> --- a/man7/armscii-8.7
> +++ b/man7/armscii-8.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009  Lefteris Dimitroulakis <edimitro at tee.gr>
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/charsets.7 b/man7/charsets.7
> index 439ea7343708..79d1c1442238 100644
> --- a/man7/charsets.7
> +++ b/man7/charsets.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright (c) 1996 Eric S. Raymond <esr@thyrsus.com>
>  .\" and Copyright (c) Andries Brouwer <aeb@cwi.nl>
>  .\"
> diff --git a/man7/cp1251.7 b/man7/cp1251.7
> index 382de42c8510..fdc1af847300 100644
> --- a/man7/cp1251.7
> +++ b/man7/cp1251.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009    Lefteris Dimitroulakis (edimitro@tee.gr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/cp1252.7 b/man7/cp1252.7
> index 07ac84bf5d19..759a4061d0bb 100644
> --- a/man7/cp1252.7
> +++ b/man7/cp1252.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2014 (C) Marko Myllynen <myllynen@redhat.com>
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-1.7 b/man7/iso_8859-1.7
> index 202768231f51..8c57bcfbc3eb 100644
> --- a/man7/iso_8859-1.7
> +++ b/man7/iso_8859-1.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 1993-1995 Daniel Quinlan (quinlan@yggdrasil.com)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-10.7 b/man7/iso_8859-10.7
> index 82c8eeda5f7f..02f89221cdb0 100644
> --- a/man7/iso_8859-10.7
> +++ b/man7/iso_8859-10.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009    Lefteris Dimitroulakis (edimitro@tee.gr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-11.7 b/man7/iso_8859-11.7
> index 073ddc65771e..afc931b00e98 100644
> --- a/man7/iso_8859-11.7
> +++ b/man7/iso_8859-11.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009 Lefteris Dimitroulakis <edimitro at tee.gr>
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-13.7 b/man7/iso_8859-13.7
> index 06de48839aa8..6a5304b11a51 100644
> --- a/man7/iso_8859-13.7
> +++ b/man7/iso_8859-13.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009   Lefteris Dimitroulakis (edimitro@tee.gr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-14.7 b/man7/iso_8859-14.7
> index 592bd0838e05..cb39a9e915fd 100644
> --- a/man7/iso_8859-14.7
> +++ b/man7/iso_8859-14.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009   Lefteris Dimitroulakis (edimitro@tee.gr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-15.7 b/man7/iso_8859-15.7
> index 5e71a41aae60..9946b0bc266f 100644
> --- a/man7/iso_8859-15.7
> +++ b/man7/iso_8859-15.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 1993-1995 Daniel Quinlan (quinlan@yggdrasil.com)
>  .\" Copyright 1999      Dimitri Papadopoulos (dpo@club-internet.fr)
>  .\"
> diff --git a/man7/iso_8859-16.7 b/man7/iso_8859-16.7
> index 8d9b5a259586..5bf518279b07 100644
> --- a/man7/iso_8859-16.7
> +++ b/man7/iso_8859-16.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2002 Ionel Mugurel Ciobîcă (IMCiobica@netscape.net)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-2.7 b/man7/iso_8859-2.7
> index 095f0612d0ca..a9e478b58d66 100644
> --- a/man7/iso_8859-2.7
> +++ b/man7/iso_8859-2.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 1999 Roman Maurer (roman.maurer@hermes.si)
>  .\" Copyright 1993-1995 Daniel Quinlan (quinlan@yggdrasil.com)
>  .\"
> diff --git a/man7/iso_8859-3.7 b/man7/iso_8859-3.7
> index 5f2605852f3d..b9e00fd10ed9 100644
> --- a/man7/iso_8859-3.7
> +++ b/man7/iso_8859-3.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009  Lefteris Dimitroulakis (edimitro@tee.gr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-4.7 b/man7/iso_8859-4.7
> index 6eefaef93989..4ef5c0e05a44 100644
> --- a/man7/iso_8859-4.7
> +++ b/man7/iso_8859-4.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009  Lefteris Dimitroulakis (edimitro@tee.gr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-5.7 b/man7/iso_8859-5.7
> index 7e3c8cec1087..1396b36de92e 100644
> --- a/man7/iso_8859-5.7
> +++ b/man7/iso_8859-5.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009   Lefteris Dimitroulakis (edimitro@tee.gr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-6.7 b/man7/iso_8859-6.7
> index 5e1608a2e342..d2c5aea085d5 100644
> --- a/man7/iso_8859-6.7
> +++ b/man7/iso_8859-6.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009  Lefteris Dimitroulakis (edimitro@tee.gr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-7.7 b/man7/iso_8859-7.7
> index f59570888089..97bb728d803b 100644
> --- a/man7/iso_8859-7.7
> +++ b/man7/iso_8859-7.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 1999      Dimitri Papadopoulos (dpo@club-internet.fr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-8.7 b/man7/iso_8859-8.7
> index b7e1c5f7b53a..bdfaa571cad7 100644
> --- a/man7/iso_8859-8.7
> +++ b/man7/iso_8859-8.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009   Lefteris Dimitroulakis (edimitro@tee.gr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/iso_8859-9.7 b/man7/iso_8859-9.7
> index b97efc29cf15..705971e454c9 100644
> --- a/man7/iso_8859-9.7
> +++ b/man7/iso_8859-9.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2002      Dimitri Papadopoulos (dpo@club-internet.fr)
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/koi8-r.7 b/man7/koi8-r.7
> index 7ee9e2927d42..7d1977eb3832 100644
> --- a/man7/koi8-r.7
> +++ b/man7/koi8-r.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2001      Alexey Mahotkin <alexm@hsys.msk.ru>
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man7/koi8-u.7 b/man7/koi8-u.7
> index 0c56e949f3e4..987918724d7f 100644
> --- a/man7/koi8-u.7
> +++ b/man7/koi8-u.7
> @@ -1,4 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
>  .\" Copyright 2009  Lefteris Dimitroulakis <edimitro at tee.gr>
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/man8/iconvconfig.8 b/man8/iconvconfig.8
> index 2cc3536f4c11..b572829659b5 100644
> --- a/man8/iconvconfig.8
> +++ b/man8/iconvconfig.8
> @@ -1,5 +1,3 @@
> -'\" t -*- coding: UTF-8 -*-
> -.\"
>  .\" Copyright (C) 2014 Marko Myllynen <myllynen@redhat.com>
>  .\"
>  .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
> diff --git a/scripts/convert_to_utf_8.sh b/scripts/convert_to_utf_8.sh
> index b8a5e83baee1..28f5a72cf8c7 100755
> --- a/scripts/convert_to_utf_8.sh
> +++ b/scripts/convert_to_utf_8.sh
> @@ -33,7 +33,7 @@ fi
>  out_dir="$1"
>  shift
>  
> -enc_line="'\\\" t -*- coding: UTF-8 -*-"
> +enc_line=""
>  
>  for f in "$@"; do
>      enc=$(file -bi "$f" | cut -d = -f 2)
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] [rfc] drop "coding: UTF-8" header
  2020-08-13  7:38 ` Michael Kerrisk (man-pages)
@ 2020-08-13 11:07   ` G. Branden Robinson
  2020-08-13 11:27     ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 4+ messages in thread
From: G. Branden Robinson @ 2020-08-13 11:07 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: Mike Frysinger, linux-man

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

Hi Michael and Mike,

Just an FYI here.

At 2020-08-13T09:38:06+0200, Michael Kerrisk (man-pages) wrote:
> Hi Mike,
> 
> On 7/26/20 8:23 AM, Mike Frysinger wrote:
> > From: Mike Frysinger <vapier@chromium.org>
> > 
> > This header is used inconsistently -- man pages are UTF-8 encoded
> > but not setting this marker.  It's only respected by the man-db
> > package, and seems a bit anachronistic at this point when UTF-8
> > is the standard default nowadays.
> 
> Thanks. Patch applied.

Sorry I missed Mike's original mail, but there is _something_ else
besides man-db that respects this "coding: utf-8" thing.

It's the editor that some people might use to maintain the man pages:
GNU Emacs[1].

That said, UTF-8 is an easy encoding to detect, the Unix standard of
many years now as you note, and for about that long Emacs has also
scanned the ends of files for file variables as well (in a more
expressive and powerful format), so they don't need to be packed in at
the beginning.

Also, it's no skin off me personally because I use Vim.  :P

Regards,
Branden

[1] https://www.gnu.org/software/emacs/manual/html_node/emacs/Specifying-File-Variables.html#Specifying-File-Variables

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] [rfc] drop "coding: UTF-8" header
  2020-08-13 11:07   ` G. Branden Robinson
@ 2020-08-13 11:27     ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-08-13 11:27 UTC (permalink / raw)
  To: G. Branden Robinson; +Cc: Mike Frysinger, linux-man

Hi Branden,

On Thu, 13 Aug 2020 at 13:07, G. Branden Robinson
<g.branden.robinson@gmail.com> wrote:

> > On 7/26/20 8:23 AM, Mike Frysinger wrote:
> > > From: Mike Frysinger <vapier@chromium.org>
> > >
> > > This header is used inconsistently -- man pages are UTF-8 encoded
> > > but not setting this marker.  It's only respected by the man-db
> > > package, and seems a bit anachronistic at this point when UTF-8
> > > is the standard default nowadays.
> >
> > Thanks. Patch applied.
>
> Sorry I missed Mike's original mail, but there is _something_ else
> besides man-db that respects this "coding: utf-8" thing.
>
> It's the editor that some people might use to maintain the man pages:
> GNU Emacs[1].
>
> That said, UTF-8 is an easy encoding to detect, the Unix standard of
> many years now as you note, and for about that long Emacs has also
> scanned the ends of files for file variables as well (in a more
> expressive and powerful format), so they don't need to be packed in at
> the beginning.
>
> Also, it's no skin off me personally because I use Vim.  :P

Thanks for (once again) dropping in with some helpful information.
Still, I think it's right to apply the patch (and I don't think you
object), since, as Mike notes, the tag is used quite inconsistently,
and so it seems like no software really cares about this. And ever
since the day I accidentally opened a PDF with emacs, and found that
it actually worked, I've decided there's nothing emacs can't do :-).

Cheers,

Michael

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-13 11:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-26  6:23 [PATCH] [rfc] drop "coding: UTF-8" header Mike Frysinger
2020-08-13  7:38 ` Michael Kerrisk (man-pages)
2020-08-13 11:07   ` G. Branden Robinson
2020-08-13 11:27     ` Michael Kerrisk (man-pages)

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).