[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Missing LOCALE in post-commit hook leads to weird behaviour of `svnlook log` with unicode characters – broken transliterations

From: H.-Dirk Schmitt <dirk_at_computer42.org>
Date: Mon, 29 Jan 2018 16:46:09 +0100

Stefan Sperling <stsp_at_elego.de>:
> On Sat, Jan 27, 2018 at 06:35:17PM +0100, H.-Dirk Schmitt wrote:
> > All the commit messages content transfered is broken as described
> > above.
> >
> > This happens because the post-commit hook is running with a very
> > reduced set of environment variables:
> > PWD=/
> > SHLVL=1
>
> See http://subversion.apache.org/docs/release-notes/1.8.html#hooks-en
> v
> and http://subversion.apache.org/docs/release-notes/1.8.html#mod-dav-
> svn-utf8

Johan Corveleyn <jcorvel_at_gmail.com>:
> This is documented in the official documentation (the "SVN Book"):
> [...]
> (see the first sentence there: "By default, Subversion executes hook
> scripts with an empty environment—that is, no environment variables
> are set at all, not even $PATH (or %PATH%, under Windows).")

OK - My „Postscriptum“ was not correct - my apologies.

But still valid are the the points:

- Broken transliteration of German Umlaut.
- Subversion is ignoring the machine locate settings which should
normally the default if not overwritten in the Environment. This is a
considerable bad behaviour for a linux/unix application.

-- 
  
  
  Signature H.-Dirk Schmitt
  
  
  H.-Dirk Schmitt
  
  Dipl.Math.
  eMail:dirk.schmitt_at_computer42.org
  
  mobile:+49 177 616 8564
  
  phone: +49 2642 99 41 14
  
  fax: +49 2642 99 41 15
  
  Schillerstr. 42, D-53489 Sinzig
  pgp: http://www.computer42.org/~dirk/OpenPGP-fingerprint.html
Received on 2018-01-29 16:46:39 CET

This is an archived mail posted to the Subversion Users mailing list.