Package list orafce / a98de0b
Generate locales at run-time instead of depending on locales-all which doesn't exit on Ubuntu Christoph Berg 7 years ago
2 changed file(s) with 11 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
0 Depends: @, postgresql-server-dev-all, locales-all
0 Depends: @, postgresql-server-dev-all, locales
11 Tests: installcheck
2 Restrictions: allow-stderr
2 Restrictions: needs-root allow-stderr
00 #!/bin/sh
1
2 if [ -f /etc/locale.gen ]; then
3 # Debian
4 grep -Fq "en_US.UTF-8 UTF-8" || echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
5 locale-gen
6 else
7 # Ubuntu
8 locale-gen en_US.UTF-8
9 fi
110
211 # to_multi_byte needs English, and UTF-8
312 export LC_ALL=en_US.utf8