Skip to content
Myr

meson: run generate_version.sh in a C locale

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Previously, only the date command inside the script was run with LC_TIME=C. But there’s no reason to be that conservative; we absolutely do not want _anything_ in that script to generate locale dependent output.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 935ec93 · Browse files · 2 files+3 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−2 removed

  • other:+3 added−2 removed

2 files+3 added−2 removed

modified:generate-version.sh+1 added-1 removed
modified:meson.build+2 added-1 removed
104 unmodified lines
105 input: prot,106 command: [wscanner_prog, 'private-code', '@INPUT@', '@OUTPUT@'])107endforeach108109env = find_program('env', native: true)110generate_version_sh = files('generate-version.sh')111version = custom_target(112 'generate_version',113 build_always_stale: true,114 output: 'version.h',114 command: [generate_version_sh, meson.project_version(), '@SOURCE_ROOT@', '@OUTPUT@'])115 command: [env, 'LC_ALL=C', generate_version_sh, meson.project_version(), '@SOURCE_ROOT@', '@OUTPUT@'])116117executable(118 'fuzzel',119 'application.c', 'application.h',
42 unmodified lines