summaryrefslogtreecommitdiff
path: root/dpkg-deb/main.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-11-17 06:46:28 +0100
committerGuillem Jover <guillem@debian.org>2013-11-23 06:24:30 +0100
commitfa1cd230b9d89c4f861d10267ea635c8babf6627 (patch)
treebe27fc97ac33400f31817a1d2ade00eb5b66e0da /dpkg-deb/main.c
parent62841baecfc474fd1bf61ae8ee75a636ccf8f909 (diff)
downloaddpkg-fa1cd230b9d89c4f861d10267ea635c8babf6627.tar.gz
libdpkg: New dpkg_locales_init()
Switch all program to use the new function instead of open-coding it.
Diffstat (limited to 'dpkg-deb/main.c')
-rw-r--r--dpkg-deb/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c
index 50c80810e..310bd417d 100644
--- a/dpkg-deb/main.c
+++ b/dpkg-deb/main.c
@@ -247,10 +247,7 @@ int main(int argc, const char *const *argv) {
int ret;
setlocale(LC_NUMERIC, "POSIX");
- setlocale(LC_ALL, "");
- bindtextdomain(PACKAGE, LOCALEDIR);
- textdomain(PACKAGE);
-
+ dpkg_locales_init(PACKAGE);
dpkg_program_init(BACKEND);
dpkg_options_parse(&argv, cmdinfos, printforhelp);