Missing LOCALE in post-commit hook leads to weird behaviour of `svnlook log` with unicode characters – broken transliterations
From: H.-Dirk Schmitt <admin_at_computer42.org>
Date: Sat, 27 Jan 2018 18:33:27 +0100
I found a very weird behaviour of `svnlook log` that IMHO is a bug (or
Introduction
Consider a log message like: 'Unicode Test → ø ÄÖÜ'
`svnlook log` invoked in a normal terminal session shows the proper
Now start to play - `env LC_ALL=C.UTF-8 svnlook log` also shows a
Problem
Unicode Test {U+2192} {U+00F8} AOU
→ and ø are replaced with there code description
Why is this behaviour not a cosmetic problem.
Consider a post-commit hook fetching the commit message with `svnlook
The actual setup is svn+apache2 and a bash script as post commit hook.
All the commit messages content transfered is broken as described
This happens because the post-commit hook is running with a very
Especially `LC_ALL` is not set which is eqivalent to `LC_ALL=C`.
Suggested Mitigation/Fixing
PS: Google et. al. haven't shown that this issue is well documented.
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.