changeset 39211:28a8d93056e6

maint: Add encoding marker for Emacs to non-ASCII sources. Similar to commit f406941a8a2ec5fbf3eacc386b9be09d6593d53b from Paul Eggert <eggert@cs.ucla.edu> 2015-09-24. To determine the file list that need the marker, I used the command: for f in `find . -type f | grep -v '^\./\.git/' | grep -v '^\./tests/'`; do if iconv -f ASCII -t ASCII < $f > /dev/null 2>&1 ; then : ; else if iconv -f UTF-8 -t UTF-8 < $f > /dev/null 2>&1 ; then if grep 'The GNU C Library is' $f > /dev/null; then :; else if grep 'coding: utf-8' $f > /dev/null; then :; else echo $f fi fi fi fi done | LC_ALL=C sort
author Bruno Haible <bruno@clisp.org>
date Fri, 05 Jan 2018 22:08:14 +0100
parents 9b55cbc9c002
children c602ea448248
files build-aux/update-copyright lib/getprogname.c lib/md5.c lib/md5.h lib/memxor.h lib/quotearg.c lib/sha1.c lib/sha1.h lib/sha256.c lib/sha256.h lib/sha512.c lib/sha512.h lib/sm3.c lib/sm3.h
diffstat 14 files changed, 93 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build-aux/update-copyright	Thu Jan 04 15:59:04 2018 +0100
+++ b/build-aux/update-copyright	Fri Jan 05 22:08:14 2018 +0100
@@ -264,7 +264,9 @@
     print STDERR "$ARGV: warning: copyright statement not found\n";
   }
 
+# Hey Emacs!
 # Local variables:
+# coding: utf-8
 # mode: perl
 # indent-tabs-mode: nil
 # eval: (add-hook 'write-file-hooks 'time-stamp)
--- a/lib/getprogname.c	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/getprogname.c	Fri Jan 05 22:08:14 2018 +0100
@@ -182,3 +182,10 @@
 }
 
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/md5.c	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/md5.c	Fri Jan 05 22:08:14 2018 +0100
@@ -469,3 +469,10 @@
   ctx->D = D;
 }
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/md5.h	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/md5.h	Fri Jan 05 22:08:14 2018 +0100
@@ -133,3 +133,10 @@
 # endif
 
 #endif /* md5.h */
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/memxor.h	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/memxor.h	Fri Jan 05 22:08:14 2018 +0100
@@ -28,3 +28,10 @@
 void *memxor (void *restrict dest, const void *restrict src, size_t n);
 
 #endif /* MEMXOR_H */
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/quotearg.c	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/quotearg.c	Fri Jan 05 22:08:14 2018 +0100
@@ -1080,3 +1080,10 @@
 {
   return quote_n (0, arg);
 }
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/sha1.c	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/sha1.c	Fri Jan 05 22:08:14 2018 +0100
@@ -434,3 +434,10 @@
     }
 }
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/sha1.h	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/sha1.h	Fri Jan 05 22:08:14 2018 +0100
@@ -98,3 +98,10 @@
 # endif
 
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/sha256.c	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/sha256.c	Fri Jan 05 22:08:14 2018 +0100
@@ -577,3 +577,10 @@
     }
 }
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/sha256.h	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/sha256.h	Fri Jan 05 22:08:14 2018 +0100
@@ -101,3 +101,10 @@
 # endif
 
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/sha512.c	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/sha512.c	Fri Jan 05 22:08:14 2018 +0100
@@ -629,3 +629,10 @@
     }
 }
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/sha512.h	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/sha512.h	Fri Jan 05 22:08:14 2018 +0100
@@ -104,3 +104,10 @@
 # endif
 
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/sm3.c	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/sm3.c	Fri Jan 05 22:08:14 2018 +0100
@@ -489,3 +489,10 @@
     }
 }
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
--- a/lib/sm3.h	Thu Jan 04 15:59:04 2018 +0100
+++ b/lib/sm3.h	Fri Jan 05 22:08:14 2018 +0100
@@ -100,3 +100,10 @@
 # endif
 
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */