summaryrefslogtreecommitdiff
path: root/capinfos.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-02-28 04:44:38 +0000
committerGerald Combs <gerald@wireshark.org>2013-02-28 04:44:38 +0000
commit2f47e63a880b52b160ba8010a3d5a6c85b012dc2 (patch)
tree38b4801a7e02d1929ab62d194bb0427ab1bc4dca /capinfos.c
parentfb8f5b815a834f6e13c239b417fa5dc0b1868113 (diff)
downloadwireshark-2f47e63a880b52b160ba8010a3d5a6c85b012dc2.tar.gz
str_util.c: Although the glib documentation doesn't explicitly say so,
it looks like the thousands grouping (') modifier is supported so use it in format_size. capinfos.c: Set our locale. svn path=/trunk/; revision=47934
Diffstat (limited to 'capinfos.c')
-rw-r--r--capinfos.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/capinfos.c b/capinfos.c
index fee3c55af0..2581b32cc7 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -62,6 +62,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
+#include <locale.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
@@ -1297,6 +1298,9 @@ main(int argc, char *argv[])
}
}
+ /* Set the C-language locale to the native environment. */
+ setlocale(LC_ALL, "");
+
if ((argc - optind) < 1) {
usage(TRUE);
exit(1);
@@ -1372,5 +1376,6 @@ main(int argc, char *argv[])
exit(status);
}
}
+
return overall_error_status;
}