Package: etckeeper
Version: 1.15
Severity: normal

Dear Maintainer,

after installing the etckeeper package and setting Mercurial as 
VCS I executed command 'etckeeper init', but it failed with 
"obscure" message 

        etckeeper: invalid command init

Since switching back to GIT didn't make things better, I took 
a peek into the /usr/bin/etckeeper, which revealed that regular 
expressions use [a-z] and [0-9a-zA-Z] instead of [:lower:] and 
[:alnum:]. As you can see from the system info below, the system 
uses Estonian as the default locale in which the 'z' isn't the 
last character in the alphabet.

The bug in question was introduced with commit 
5d4fc876ad92b3f2844debade49484b862799dcc

If updating the regex is not an option, could you consider 
setting the locale to C or POSIX in the script, please?


Best regards,

        Kristjan

PS. I'm aware that this bug is filed against version 1.15, but the 
this bug is present also in the latest sources. I simply 
encountered it on a stable system first.


-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=et_EE.UTF-8, LC_CTYPE=et_EE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages etckeeper depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  mercurial              3.1.2-2+deb8u1

Versions of packages etckeeper recommends:
ii  cron [cron-daemon]  3.0pl1-127+deb8u1

Versions of packages etckeeper suggests:
ii  sudo  1.8.10p3-1+deb8u2

-- Configuration Files:
/etc/etckeeper/etckeeper.conf changed:
VCS="hg"
GIT_COMMIT_OPTIONS=""
HG_COMMIT_OPTIONS=""
BZR_COMMIT_OPTIONS=""
DARCS_COMMIT_OPTIONS="-a"
HIGHLEVEL_PACKAGE_MANAGER=apt
LOWLEVEL_PACKAGE_MANAGER=dpkg
PUSH_REMOTE=""


-- debconf information:
  etckeeper/purge: true

Reply via email to