filter/source/svg/gentoken.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit aa0c9eb6bd91126eebe1eb2444b024572b740a6a Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Tue Nov 22 12:10:14 2022 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Tue Nov 22 12:05:08 2022 +0100 tokens.gperf: Use LF line endings also on Windows This fixes the warnings during the build: C:/cygwin/home/tdf/lode/jenkins/workspace/gerrit_windows/workdir/CustomTarget/filter/source/svg/tokens.gperf:9: warning: junk after %% is ignored unsupported language option C++ , defaulting to ANSI-C C:/cygwin/home/tdf/lode/jenkins/workspace/gerrit_windows/workdir/CustomTarget/filter/source/svg/tokens.gperf:2: junk after declaration This is https://savannah.gnu.org/bugs/?53732, and is expected to be fixed in http://git.savannah.gnu.org/gitweb/?p=gperf.git;a=commitdiff;h=13c9383b10872525688ef2b4daab090037ea3576 However, the last gperf release is still 3.1 from 2017, and has not that fix included. Since we use Python 3.x, it is OK to just use 'newline' argument in the open call. Change-Id: I33585d1cc698eb55e353adbc684a83c1e0156507 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143095 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/filter/source/svg/gentoken.py b/filter/source/svg/gentoken.py index c78d066d7c97..2ef75fe5dd80 100644 --- a/filter/source/svg/gentoken.py +++ b/filter/source/svg/gentoken.py @@ -37,7 +37,7 @@ with open(tokenfile_name) as tokenfile: tokens[arr[0]] = arr[1].upper() hxx = open(hxx_name, 'w') -gperf = open(gperf_name, 'w') +gperf = open(gperf_name, 'w', newline='\n') gperf.write(gperf_header)