Skip to content

Commit cefeef3

Browse files
committed
make-sqlite.py locale fix
Use canonical name rather than alias to ensure max compatibility.
1 parent 2493a91 commit cefeef3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

utils/make-sqlite.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@
1616
# This is important for deterministic builds.
1717
# https://trac.torproject.org/projects/tor/ticket/11630#comment:20
1818
# It's also helpful to ensure consistency for the lowercase check below.
19-
# Systems differ on UTF8 or UTF-8. Use try to test both to avoid failures.
20-
try :
21-
locale.setlocale(locale.LC_ALL, 'en_US.UTF8')
22-
except :
23-
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
19+
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
2420

2521
conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), '../src/defaults/rulesets.sqlite'))
2622
c = conn.cursor()

0 commit comments

Comments
 (0)