Mercurial > gnulib
changeset 37789:44387ee93f8c
maint: add coding cookies to non-ASCII sources
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.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Thu, 24 Sep 2015 13:22:23 -0700 |
parents | 23136e9afd2d |
children | 89e925d6cfd5 |
files | 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 |
diffstat | 38 files changed, 55 insertions(+), 32 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS Thu Sep 24 17:17:38 2015 +0200 +++ b/NEWS Thu Sep 24 13:22:23 2015 -0700 @@ -727,6 +727,7 @@ # This is for Emacs. # Local Variables: +# coding: utf-8 # indent-tabs-mode: nil # whitespace-check-buffer-indent: nil # End:
--- a/doc/Makefile Thu Sep 24 17:17:38 2015 +0200 +++ b/doc/Makefile Thu Sep 24 13:22:23 2015 -0700 @@ -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,
--- a/gnulib-tool Thu Sep 24 17:17:38 2015 +0200 +++ b/gnulib-tool Thu Sep 24 13:22:23 2015 -0700 @@ -4312,7 +4312,7 @@ 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
--- a/lib/acl-internal.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/acl-internal.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/acl-internal.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/acl-internal.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/c-strtod.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/c-strtod.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/copy-acl.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/copy-acl.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/diacrit.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/diacrit.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/diacrit.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/diacrit.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/file-has-acl.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/file-has-acl.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/fpucw.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/fpucw.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/gen-uni-tables.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/gen-uni-tables.c Thu Sep 24 13:22:23 2015 -0700 @@ -10171,8 +10171,8 @@ } /* - * 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 \\
--- a/lib/get-permissions.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/get-permissions.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/gl_list.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/gl_list.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/gl_openssl.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/gl_openssl.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/ignore-value.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/ignore-value.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/mbscasestr.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/mbscasestr.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/mbsstr.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/mbsstr.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/memxor.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/memxor.c Thu Sep 24 13:22:23 2015 -0700 @@ -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
--- a/lib/pipe-filter.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/pipe-filter.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/propername.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/propername.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/qcopy-acl.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/qcopy-acl.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/set-permissions.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/set-permissions.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/setlocale.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/setlocale.c Thu Sep 24 13:22:23 2015 -0700 @@ -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
--- a/lib/strverscmp.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/strverscmp.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/trigl.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/trigl.c Thu Sep 24 13:22:23 2015 -0700 @@ -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>
--- a/lib/trigl.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/trigl.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/unicase/locale-languages.gperf Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/unicase/locale-languages.gperf Thu Sep 24 13:22:23 2015 -0700 @@ -268,3 +268,10 @@ "zh", /* Chinese" */ "zu", /* Zulu" */ "zap", /* Zapotec" */ +%{ +/* + * Local Variables: + * coding: utf-8 + * End: + */ +%}
--- a/lib/unicase/u-ct-totitle.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/unicase/u-ct-totitle.h Thu Sep 24 13:22:23 2015 -0700 @@ -499,3 +499,9 @@ } return NULL; } + +/* + * Local Variables: + * coding: utf-8 + * End: + */
--- a/lib/unistr/u-strstr.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/unistr/u-strstr.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/uniwbrk/u-wordbreaks.h Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/uniwbrk/u-wordbreaks.h Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/lib/uniwbrk/wbrktable.c Thu Sep 24 17:17:38 2015 +0200 +++ b/lib/uniwbrk/wbrktable.c Thu Sep 24 13:22:23 2015 -0700 @@ -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.
--- a/m4/fpieee.m4 Thu Sep 24 17:17:38 2015 +0200 +++ b/m4/fpieee.m4 Thu Sep 24 13:22:23 2015 -0700 @@ -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,
--- a/m4/mbrlen.m4 Thu Sep 24 17:17:38 2015 +0200 +++ b/m4/mbrlen.m4 Thu Sep 24 13:22:23 2015 -0700 @@ -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,
--- a/m4/mbrtowc.m4 Thu Sep 24 17:17:38 2015 +0200 +++ b/m4/mbrtowc.m4 Thu Sep 24 13:22:23 2015 -0700 @@ -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
--- a/modules/passfd Thu Sep 24 17:17:38 2015 +0200 +++ b/modules/passfd Thu Sep 24 13:22:23 2015 -0700 @@ -28,3 +28,7 @@ Maintainer: Bastien ROUCARIÈS + +Local Variables: +coding: utf-8 +End: