Skip to content

Commit f893bfb

Browse files
chleroymichal42
authored andcommitted
kbuild: Unset language specific variables in setlocalversion script
This patch allows the use of setlocalversion script regardless of the language parameters. Otherwise, the `svn info 2>/dev/null | grep '^Last Changed Rev'` returns nothing because for instance, in French the text 'Last Changed Rev' is replaced by 'Révision de la dernière modification' Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent e82c4bb commit f893bfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/setlocalversion‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ scm_version()
108108
fi
109109

110110
# Check for svn and a svn repo.
111-
if rev=`svn info 2>/dev/null | grep '^Last Changed Rev'`; then
111+
if rev=`LANG= LC_ALL= LC_MESSAGES=C svn info 2>/dev/null | grep '^Last Changed Rev'`; then
112112
rev=`echo $rev | awk '{print $NF}'`
113113
printf -- '-svn%s' "$rev"
114114

0 commit comments

Comments
 (0)