]> Savannah Git Hosting - gnulib.git/commitdiff
maint: Add encoding marker for Emacs to non-ASCII sources.
authorBruno Haible <bruno@clisp.org>
Fri, 5 Jan 2018 21:08:14 +0000 (22:08 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 5 Jan 2018 21:08:14 +0000 (22:08 +0100)
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

14 files changed:
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

index ab29c633cf75041b43c23ed65a0e58c2750ebcd2..3bb26abea1b661edf3c5160de40434ee0eb9458b 100755 (executable)
@@ -264,7 +264,9 @@ else
     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)
index dd2d9442a979fc1fb684af833c854cf58273950b..58625de31ba9606c7b303fafb6ffe8dd2cc02129 100644 (file)
@@ -182,3 +182,10 @@ getprogname (void)
 }
 
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index 351c2b91ac642e959601fdc7e5747007bdc71d9b..68d00a6c7e0c767465e259f31288ab9eb6254923 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -469,3 +469,10 @@ md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx)
   ctx->D = D;
 }
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index 4b9113ad2f2d3778ba7fcb4892a5e6a61e9f4ace..d5d3c0167f7538f1eb03cc9852f9f9058b5f7446 100644 (file)
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -133,3 +133,10 @@ extern int __md5_stream (FILE *stream, void *resblock) __THROW;
 # endif
 
 #endif /* md5.h */
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index 97e6dd0875bb6b0e62198bc190a931d87affb635..5dde3a989ed59f270cbcc19a976796067c7c8da5 100644 (file)
 void *memxor (void *restrict dest, const void *restrict src, size_t n);
 
 #endif /* MEMXOR_H */
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index 95d69eb49fe160f9fe06c3bf3941ec3d07059674..fe68dca313dfc76e12e10326f47213af0264e5fb 100644 (file)
@@ -1080,3 +1080,10 @@ quote (char const *arg)
 {
   return quote_n (0, arg);
 }
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index 25dc99f9d918eb7704cc61cf45c9708bea6a3dee..37d46b68e786d8115483c9d96e03bb0ea5f33619 100644 (file)
@@ -434,3 +434,10 @@ sha1_process_block (const void *buffer, size_t len, struct sha1_ctx *ctx)
     }
 }
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index 4863b7025f1c7555ae8aa043d28cb725c1fa3652..e41ce4bfeefec70373508e71013b0e9c810cbb92 100644 (file)
@@ -98,3 +98,10 @@ extern int sha1_stream (FILE *stream, void *resblock);
 # endif
 
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index 2f28fcd7100e887c32c6ea2bd847b789aea2cefe..85405b20fdf481f4255ee6689a52be389517274f 100644 (file)
@@ -577,3 +577,10 @@ sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx)
     }
 }
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index ca06691241a4565801669bd87c5ef4c9d0dd82be..e3449864bb674de96b25470c7274943de10ab989 100644 (file)
@@ -101,3 +101,10 @@ extern int sha224_stream (FILE *stream, void *resblock);
 # endif
 
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index d6a8ce181a1a5a6aeed19404d9a70cd0608c42e2..8a6dd4e83ac18c66a9350fbf64355ad5ad6916b0 100644 (file)
@@ -629,3 +629,10 @@ sha512_process_block (const void *buffer, size_t len, struct sha512_ctx *ctx)
     }
 }
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index 516e75b30139d2def14605f2c4a56814ba89230e..6a0aadba02fdbd13c716394df770443be5e38a56 100644 (file)
@@ -104,3 +104,10 @@ extern int sha384_stream (FILE *stream, void *resblock);
 # endif
 
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index da93dd697cd4c745d1aa3b82b40d195614ecbb40..383028073c212b0e3971bd56515ee1881435314e 100644 (file)
--- a/lib/sm3.c
+++ b/lib/sm3.c
@@ -489,3 +489,10 @@ sm3_process_block (const void *buffer, size_t len, struct sm3_ctx *ctx)
     }
 }
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */
index 3c62591c9f7ebdbe2528315cc815bbda5b327b87..626f84aea4df054b8b7fb57f32ceb5e3f0cee36d 100644 (file)
--- a/lib/sm3.h
+++ b/lib/sm3.h
@@ -100,3 +100,10 @@ extern int sm3_stream (FILE *stream, void *resblock);
 # endif
 
 #endif
+
+/*
+ * Hey Emacs!
+ * Local Variables:
+ * coding: utf-8
+ * End:
+ */