From 16fc1cdc25991b996e454254ca1365f966d00a59 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 5 Jan 2018 22:08:14 +0100 Subject: [PATCH] maint: Add encoding marker for Emacs to non-ASCII sources. Similar to commit f406941a8a2ec5fbf3eacc386b9be09d6593d53b from Paul Eggert 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 --- build-aux/update-copyright | 2 ++ lib/getprogname.c | 7 +++++++ lib/md5.c | 7 +++++++ lib/md5.h | 7 +++++++ lib/memxor.h | 7 +++++++ lib/quotearg.c | 7 +++++++ lib/sha1.c | 7 +++++++ lib/sha1.h | 7 +++++++ lib/sha256.c | 7 +++++++ lib/sha256.h | 7 +++++++ lib/sha512.c | 7 +++++++ lib/sha512.h | 7 +++++++ lib/sm3.c | 7 +++++++ lib/sm3.h | 7 +++++++ 14 files changed, 93 insertions(+) diff --git a/build-aux/update-copyright b/build-aux/update-copyright index ab29c633cf..3bb26abea1 100755 --- a/build-aux/update-copyright +++ b/build-aux/update-copyright @@ -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) diff --git a/lib/getprogname.c b/lib/getprogname.c index dd2d9442a9..58625de31b 100644 --- a/lib/getprogname.c +++ b/lib/getprogname.c @@ -182,3 +182,10 @@ getprogname (void) } #endif + +/* + * Hey Emacs! + * Local Variables: + * coding: utf-8 + * End: + */ diff --git a/lib/md5.c b/lib/md5.c index 351c2b91ac..68d00a6c7e 100644 --- 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: + */ diff --git a/lib/md5.h b/lib/md5.h index 4b9113ad2f..d5d3c0167f 100644 --- 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: + */ diff --git a/lib/memxor.h b/lib/memxor.h index 97e6dd0875..5dde3a989e 100644 --- a/lib/memxor.h +++ b/lib/memxor.h @@ -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: + */ diff --git a/lib/quotearg.c b/lib/quotearg.c index 95d69eb49f..fe68dca313 100644 --- a/lib/quotearg.c +++ b/lib/quotearg.c @@ -1080,3 +1080,10 @@ quote (char const *arg) { return quote_n (0, arg); } + +/* + * Hey Emacs! + * Local Variables: + * coding: utf-8 + * End: + */ diff --git a/lib/sha1.c b/lib/sha1.c index 25dc99f9d9..37d46b68e7 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -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: + */ diff --git a/lib/sha1.h b/lib/sha1.h index 4863b7025f..e41ce4bfee 100644 --- a/lib/sha1.h +++ b/lib/sha1.h @@ -98,3 +98,10 @@ extern int sha1_stream (FILE *stream, void *resblock); # endif #endif + +/* + * Hey Emacs! + * Local Variables: + * coding: utf-8 + * End: + */ diff --git a/lib/sha256.c b/lib/sha256.c index 2f28fcd710..85405b20fd 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -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: + */ diff --git a/lib/sha256.h b/lib/sha256.h index ca06691241..e3449864bb 100644 --- a/lib/sha256.h +++ b/lib/sha256.h @@ -101,3 +101,10 @@ extern int sha224_stream (FILE *stream, void *resblock); # endif #endif + +/* + * Hey Emacs! + * Local Variables: + * coding: utf-8 + * End: + */ diff --git a/lib/sha512.c b/lib/sha512.c index d6a8ce181a..8a6dd4e83a 100644 --- a/lib/sha512.c +++ b/lib/sha512.c @@ -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: + */ diff --git a/lib/sha512.h b/lib/sha512.h index 516e75b301..6a0aadba02 100644 --- a/lib/sha512.h +++ b/lib/sha512.h @@ -104,3 +104,10 @@ extern int sha384_stream (FILE *stream, void *resblock); # endif #endif + +/* + * Hey Emacs! + * Local Variables: + * coding: utf-8 + * End: + */ diff --git a/lib/sm3.c b/lib/sm3.c index da93dd697c..383028073c 100644 --- 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: + */ diff --git a/lib/sm3.h b/lib/sm3.h index 3c62591c9f..626f84aea4 100644 --- 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: + */ -- 2.39.5