]> Savannah Git Hosting - gnulib.git/commitdiff
maint: add coding cookies to non-ASCII sources
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Sep 2015 20:22:23 +0000 (13:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 24 Sep 2015 20:25:37 +0000 (13:25 -0700)
Otherwise, Emacs might do the wrong thing if run in an
he_IL.ISO-8859-8 locale, which an Emacs developer does on occasion.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00966.html

Don't bother with test files, as they aren't copied to the Emacs
source directory.  If this problem affects test files in some other
GNU project, we can add coding cookies to the non-ASCII test files
later.

38 files changed:
NEWS
doc/Makefile
gnulib-tool
lib/acl-internal.c
lib/acl-internal.h
lib/c-strtod.h
lib/copy-acl.c
lib/diacrit.c
lib/diacrit.h
lib/file-has-acl.c
lib/fpucw.h
lib/gen-uni-tables.c
lib/get-permissions.c
lib/gl_list.h
lib/gl_openssl.h
lib/ignore-value.h
lib/mbscasestr.c
lib/mbsstr.c
lib/memxor.c
lib/pipe-filter.h
lib/propername.h
lib/qcopy-acl.c
lib/set-permissions.c
lib/setlocale.c
lib/strverscmp.c
lib/trigl.c
lib/trigl.h
lib/unicase/locale-languages.gperf
lib/unicase/u-ct-totitle.h
lib/unistr/u-strstr.h
lib/uniwbrk/u-wordbreaks.h
lib/uniwbrk/wbrktable.c
m4/fpieee.m4
m4/mbrlen.m4
m4/mbrtowc.m4
modules/passfd
modules/timer-time
users.txt

diff --git a/NEWS b/NEWS
index b54a99286d430ed501403163a6b9a2f69c93c1cf..55f60fd309c6babd54438095d77451d758a599f7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -727,6 +727,7 @@ Date        Modules         Changes
 
 # This is for Emacs.
 # Local Variables:
+# coding: utf-8
 # indent-tabs-mode: nil
 # whitespace-check-buffer-indent: nil
 # End:
index 9b1ac79e9fd2ade9ed4e71e837874e3a24d97680..c4b4674620efdecebb3d315ab6d502368c5bcf44 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile for gnulib doc.
+# Makefile for gnulib doc.  -*- coding: utf-8 -*-
 # Copyright (C) 2004, 2006-2015 Free Software Foundation, Inc.
 #
 # Copying and distribution of this file, with or without modification,
index cd224ad4bcf4fbacaab5bbdce059aad7c1d7e478..c5c9ea6ef6d0584eea38b8ad60ec03dae9e296a1 100755 (executable)
@@ -4312,7 +4312,7 @@ func_import ()
             fi
           done
         else
-          # This loop has O(N²) worst-case run time.
+          # This loop has O(N**2) worst-case run time.
           for module in $cached_specified_modules; do
             to_remove=
             for m in $1; do
index 1eaa671bd37942a93cfab3d2f46698e77830c087..c1b70176ac0505f3d459d3837cdb23458bf69560 100644 (file)
@@ -1,4 +1,4 @@
-/* Test whether a file has a nontrivial access control list.
+/* Test whether a file has a nontrivial ACL.  -*- coding: utf-8 -*-
 
    Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
 
index 38a4ab2eb3aebf8e57b176df61b263703f013b58..560d1464daa35f087dffaf023e6592b63643b1e9 100644 (file)
@@ -1,4 +1,4 @@
-/* Internal implementation of access control lists.
+/* Internal implementation of access control lists.  -*- coding: utf-8 -*-
 
    Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
 
index b80254d278d14082de46de753e5339b546eea6f5..0fc5a3c1b247385f04ebe69672f8cd00e76f4563 100644 (file)
@@ -1,4 +1,4 @@
-/* Convert string to double, using the C locale.
+/* Convert string to double, using the C locale.  -*- coding: utf-8 -*-
 
    Copyright (C) 2003-2004, 2009-2015 Free Software Foundation, Inc.
 
index 49679eb9b37f4845d627d40d21ca1a489d3d900d..2be8c9e2a0d420d14e1edc16eba6d674a7b190cf 100644 (file)
@@ -1,4 +1,4 @@
-/* copy-acl.c - copy access control list from one file to another file
+/* Copy access control list from one file to file.  -*- coding: utf-8 -*-
 
    Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
 
index dab6c97235f3acebef7af520ee8b654dd716dc4d..0f184257eedb63ba3de40e0d298282878aa4f824 100644 (file)
@@ -1,4 +1,4 @@
-/* Diacritics processing for a few character codes.
+/* Diacritics processing for a few character codes.  -*- coding: utf-8 -*-
 
    Copyright (C) 1990-1993, 2000, 2006, 2009-2015 Free Software Foundation,
    Inc.
index b7f025fd890deb917b281365f1196e0e97f5ca3e..e10a8a7f9952b85bb3e8f931fc6c0806f85d1c16 100644 (file)
@@ -1,4 +1,4 @@
-/* Diacritics processing for a few character codes.
+/* Diacritics processing for a few character codes.  -*- coding: utf-8 -*-
    Copyright (C) 1990-1993, 2009-2015 Free Software Foundation, Inc.
    François Pinard <pinard@iro.umontreal.ca>, 1988.
 
index b78a8793fe2f245229bdb92d0e3d74e3206a1004..6027c2ed789cffa41b4372a7aff57c50e073feb4 100644 (file)
@@ -1,4 +1,4 @@
-/* Test whether a file has a nontrivial access control list.
+/* Test whether a file has a nontrivial ACL.  -*- coding: utf-8 -*-
 
    Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
 
index cedd5b427f3f5ece74b6713571d7f391864c9290..b8cdf7e10384ccd3c2b5a971a70f0810970e31a2 100644 (file)
@@ -1,4 +1,4 @@
-/* Manipulating the FPU control word.
+/* Manipulating the FPU control word.  -*- coding: utf-8 -*-
    Copyright (C) 2007-2015 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2007.
 
index 8c720921952afe0b3f874ea69c1591a50e65fe57..a0b19ff1a58738d39e710a705476194fb8d27619 100644 (file)
@@ -10171,8 +10171,8 @@ main (int argc, char * argv[])
 }
 
 /*
- * For Emacs M-x compile
  * Local Variables:
+ * coding: utf-8
  * compile-command: "\
  *   gcc -O -Wall gen-uni-tables.c -Iunictype -o gen-uni-tables &&      \\
  *   ./gen-uni-tables                                                   \\
index 459513c925144fa6be950cfeb2f9e204a69c0a9f..9dfb0764ce458e700a20589bf0cc6b4f8b593d27 100644 (file)
@@ -1,4 +1,4 @@
-/* get-permissions.c - get permissions of a file
+/* Get permissions of a file.  -*- coding: utf-8 -*-
 
    Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
 
index 916f57f7de1587e8484ee879c7a7cfd00f4623a6..a0c7d27643ca21362e30cff388b0c67694f5bcc5 100644 (file)
@@ -1,4 +1,4 @@
-/* Abstract sequential list data type.
+/* Abstract sequential list data type.  -*- coding: utf-8 -*-
    Copyright (C) 2006-2015 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2006.
 
index 697cd855c486fc020d31c2f2b5fc4491af9c8ea5..3900df680bed18e614173470a160de968562159d 100644 (file)
@@ -1,4 +1,4 @@
-/* gl_openssl.h -- wrap openssl crypto hash routines in gnulib interface
+/* Wrap openssl crypto hash routines in gnulib interface.  -*- coding: utf-8 -*-
 
    Copyright (C) 2013-2015 Free Software Foundation, Inc.
 
index 68521edb38f50cb2230c8560a125864be212db6a..2e3121fac0511a4b42cb7a70bf2461fa572ef047 100644 (file)
@@ -1,4 +1,4 @@
-/* ignore a function return without a compiler warning
+/* ignore a function return without a compiler warning.  -*- coding: utf-8 -*-
 
    Copyright (C) 2008-2015 Free Software Foundation, Inc.
 
index a87131028835f804024792bd3ac0466df2fd1844..089a4baf4037806dc01497cdc6b4c8b2e4b195dd 100644 (file)
@@ -1,4 +1,4 @@
-/* Case-insensitive searching in a string.
+/* Case-insensitive searching in a string.  -*- coding: utf-8 -*-
    Copyright (C) 2005-2015 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2005.
 
index a38f30139669ef4301ea80f27cd5ab23d422008a..6d5239e8ad8a8b66f0307abdd07a26b9c2b4e3e1 100644 (file)
@@ -1,4 +1,4 @@
-/* Searching in a string.
+/* Searching in a string.  -*- coding: utf-8 -*-
    Copyright (C) 2005-2015 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2005.
 
index d78b5a41822fa18fe4f249fc987bb294f769aad1..9b6d0232422dbdf7e9cd7b5ca2ff6faa69872675 100644 (file)
@@ -1,4 +1,4 @@
-/* memxor.c -- perform binary exclusive OR operation of two memory blocks.
+/* Binary exclusive OR operation of two memory blocks.  -*- coding: utf-8 -*-
    Copyright (C) 2005-2006, 2009-2015 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
index f98637b3412695795f04d52ca90239de958ec8ea..ab60635ff621b936124108205fb76f2d8a45d637 100644 (file)
@@ -1,4 +1,4 @@
-/* Filtering of data through a subprocess.
+/* Filtering of data through a subprocess.  -*- coding: utf-8 -*-
    Copyright (C) 2009-2015 Free Software Foundation, Inc.
    Written by Bruno Haible <haible@clisp.cons.org>, 2009,
    and Paolo Bonzini <bonzini@gnu.org>, 2009.
index 9034d35b8174f07f535c6bf584c03f17c88fc123..68e617e98c636ff1cc90186b0e9923895cba64ea 100644 (file)
@@ -1,4 +1,4 @@
-/* Localization of proper names.
+/* Localization of proper names.  -*- coding: utf-8 -*-
    Copyright (C) 2006, 2008-2015 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2006.
 
index c4507424719dbdcc6e1bfa51358f866da2ffe88c..9db9033816d1a176262a16c77e9242ed9aac863a 100644 (file)
@@ -1,4 +1,4 @@
-/* copy-acl.c - copy access control list from one file to another file
+/* Copy access control list from one file to another.  -*- coding: utf-8 -*-
 
    Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
 
index 1aa5b4941c749d8bd91b97ec8a8fefce753c3d30..8e6ecf365d15dffc32ff11c8234814c4a481138e 100644 (file)
@@ -1,4 +1,4 @@
-/* set-permissions.c - set permissions of a file
+/* Set permissions of a file.  -*- coding: utf-8 -*-
 
    Copyright (C) 2002-2003, 2005-2015 Free Software Foundation, Inc.
 
index a7a1233c660e72f1b1f8ee39a17025453652210e..ed68ce291fa6dcf1474f6f31fd413f304a31d5a9 100644 (file)
@@ -1,4 +1,4 @@
-/* Set the current locale.
+/* Set the current locale.  -*- coding: utf-8 -*-
    Copyright (C) 2009, 2011-2015 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
index d5aaf48908e07fe02fa8267709589293b7a6f3cc..18ef855251cc437365896649610a4dad163db2dc 100644 (file)
@@ -1,4 +1,4 @@
-/* Compare strings while treating digits characters numerically.
+/* Compare strings while treating digits numerically.  -*- coding: utf-8 -*-
    Copyright (C) 1997, 2000, 2002, 2004, 2006, 2009-2015 Free Software
    Foundation, Inc.
    This file is part of the GNU C Library.
index 653aab8a055eb5b29c1daa6f569bc29adad9ebeb..8279ee7f8c626cb25c876716eaf56690cdcd4acb 100644 (file)
@@ -1,4 +1,4 @@
-/* Quad-precision floating point argument reduction.
+/* Quad-precision floating point argument reduction.  -*- coding: utf-8 -*-
    Copyright (C) 1999, 2007, 2009-2015 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Jakub Jelinek <jj@ultra.linux.cz>
index 8b02a56f1caa2802a03579d2c63ac128a0955064..cfbc4c69a313770c3e227269240bd52ceb9d37b2 100644 (file)
@@ -1,4 +1,4 @@
-/* Declarations for sinl, cosl, tanl internal functions
+/* Declarations for sinl, cosl, tanl internal functions.  -*- coding: utf-8 -*-
    Contributed by Paolo Bonzini
 
    Copyright 2002-2003, 2009-2015 Free Software Foundation, Inc.
index da0d94e7b173b243ac08cdad761c4a7a38984340..fd566f9971a9dc2e28021a966d83c37446b42467 100644 (file)
 "zh", /* Chinese" */
 "zu", /* Zulu" */
 "zap", /* Zapotec" */
+%{
+/*
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
+%}
index 27f37367a9f7fa01d52609bd582cfce794003ae1..cc21447dfea7a93521f2ea7c0c3450e0656e9030 100644 (file)
@@ -499,3 +499,9 @@ FUNC (const UNIT *s, size_t n,
     }
   return NULL;
 }
+
+/*
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index 459215ec8b2b5b98bc3401923bdc08dde6d294b1..7dc3c2c143c9da7263985b83273c6c4bd3fd43c0 100644 (file)
@@ -1,4 +1,4 @@
-/* Substring test for UTF-8/UTF-16/UTF-32 strings.
+/* Substring test for UTF-8/UTF-16/UTF-32 strings.  -*- coding: utf-8 -*-
    Copyright (C) 1999, 2002, 2006, 2010-2015 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2002, 2005.
 
index cdeab0baf4ae9d704c2103f6594b4833928e3cba..7166a62203539446595f2791e46bf7bc6d312e36 100644 (file)
@@ -1,4 +1,4 @@
-/* Word breaks in UTF-8/UTF-16/UTF-32 strings.
+/* Word breaks in UTF-8/UTF-16/UTF-32 strings.  -*- coding: utf-8 -*-
    Copyright (C) 2009-2015 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2009.
 
index 18c10da5613d4feebdaf578572a2d35fa9a566d6..9679573ba998f87555be3b7f5a9266501a05ff11 100644 (file)
@@ -1,4 +1,4 @@
-/* Word break auxiliary table.
+/* Word break auxiliary table.  -*- coding: utf-8 -*-
    Copyright (C) 2009-2015 Free Software Foundation, Inc.
    Written by Bruno Haible <bruno@clisp.org>, 2009.
 
index a4e48997ed97f3be53cfbd9acf2fee9658baca09..41c6033b36cba285eaaae57f7ea76eb6ec877424 100644 (file)
@@ -1,4 +1,4 @@
-# fpieee.m4 serial 2
+# fpieee.m4 serial 2  -*- coding: utf-8 -*-
 dnl Copyright (C) 2007, 2009-2015 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index 9cde958a7bd0b4c034b436066a0e6b9129b526b6..977a1ed6fe15f44e4f50f04540e2e86edf926d1f 100644 (file)
@@ -1,4 +1,4 @@
-# mbrlen.m4 serial 9
+# mbrlen.m4 serial 9  -*- coding: utf-8 -*-
 dnl Copyright (C) 2008, 2010-2015 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
index c0d751dc84e3a304c52e2b9c56dc123d1182ef46..640579e611ffe23f489f19bae27644209a6d79b3 100644 (file)
@@ -1,4 +1,4 @@
-# mbrtowc.m4 serial 26
+# mbrtowc.m4 serial 26  -*- coding: utf-8 -*-
 dnl Copyright (C) 2001-2002, 2004-2005, 2008-2015 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
index b3d8a3c02297a52f8874cb7cba3d1a11354f59a2..5e5c15f559df510d358ace8398174ad8632ccf79 100644 (file)
@@ -28,3 +28,7 @@ LGPLv2+
 
 Maintainer:
 Bastien ROUCARIÈS
+
+Local Variables:
+coding: utf-8
+End:
index 7bf8079dcd056e8b2aa42ef557f7ee22a3ad641e..e3668c86a5bcdc98e6d7ebc6142a2730292e34ac 100644 (file)
@@ -25,3 +25,7 @@ LGPLv2+
 
 Maintainer:
 Pádraig Brady, Paul Eggert, Jim Meyering
+
+Local Variables:
+coding: utf-8
+End:
index 5160e15a0a630c9615620913d21a633b32ebfe2c..7bfe0f2121c01728d0c4c117ce4429a6e8ade734 100644 (file)
--- a/users.txt
+++ b/users.txt
@@ -118,6 +118,7 @@ with or without modifications, as long as this notice is preserved.
 
 Hey Emacs!
 Local Variables:
+coding: utf-8
 indent-tabs-mode: nil
 whitespace-check-buffer-indent: nil
 End: