]> arthur.barton.de Git - bup.git/commit
Require LC_CTYPE to be iso-8859-1 for Python 3
authorRob Browning <rlb@defaultvalue.org>
Sun, 3 Nov 2019 21:10:41 +0000 (15:10 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 15 Dec 2019 20:57:33 +0000 (14:57 -0600)
commit061d134b30409f3267f1bdc4f42e1240816bc930
tree8d26c8cb31eab6d4624526f853d2de06057f64c3
parentff935e1abef2ebe89a809c100edc7931523f3349
Require LC_CTYPE to be iso-8859-1 for Python 3

Add a guard to compat (for now) that will crash if the LC_CYTPE isn't
ISO-8859-1 (aka Latin-1) when running under python3.  We definitely
need this for handling argv safely (with at least python 3.7), and
since we're planning to require this arrangement anyway, let's start
now.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/compat.py