From: Bruno Haible Date: Wed, 18 Nov 2009 09:05:16 +0000 (+0100) Subject: Update comments regarding PEP 0263. X-Git-Tag: v0.18~107 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f50acae2010a97984a1bc9903a4567d87198da79;p=thirdparty%2Fgettext.git Update comments regarding PEP 0263. --- diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index b7444a224..d67bdbe36 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,7 @@ +2009-11-15 Bruno Haible + + * x-python.c: Update comments regarding PEP 0263. + 2009-09-05 Bruno Haible * write-po.c (wrap): Remove unused initialization. diff --git a/gettext-tools/src/x-python.c b/gettext-tools/src/x-python.c index 50ea136d5..0b364575d 100644 --- a/gettext-tools/src/x-python.c +++ b/gettext-tools/src/x-python.c @@ -584,10 +584,12 @@ static int last_non_comment_line; /* Recognizing the "coding" comment. As specified in PEP 0263, it takes the form "coding" [":"|"="] {alphanumeric or "-" or "_" or "*"}* + or + "set" "fileencoding" "=" {alphanumeric or "-" or "_" or "*"}* and is located in a comment in a line that - is either the first or second line, - is not a continuation line, - - contains no other tokens except this comment. */ + - in the first form, contains no other tokens except this comment. */ /* Canonicalized encoding name for the current input file. */ static const char *xgettext_current_file_source_encoding;