aboutsummaryrefslogtreecommitdiffstats
path: root/version_info.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2011-06-29 08:05:53 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2011-06-29 08:05:53 +0000
commite015eca944700064f4ea0e8dab4dcd17e3e87be2 (patch)
tree5af458f2311619aeb1bbeb47dc0ea40fac523875 /version_info.c
parent958919b8ca8732a63b5a13922ebbb19090dfd29f (diff)
Show locale in version info (if !win32).
This may help us identifying bugs related to locale. svn path=/trunk/; revision=37829
Diffstat (limited to 'version_info.c')
-rw-r--r--version_info.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/version_info.c b/version_info.c
index f5b2b225d3..dc00463eb0 100644
--- a/version_info.c
+++ b/version_info.c
@@ -193,6 +193,9 @@ get_runtime_version_info(GString *str, void (*additional_info)(GString *))
#if HAVE_OS_X_FRAMEWORKS
SInt32 macosx_ver, macosx_major_ver, macosx_minor_ver, macosx_bugfix_ver;
#endif
+#ifndef _WIN32
+ gchar *lang;
+#endif
g_string_append(str, "on ");
@@ -477,6 +480,14 @@ get_runtime_version_info(GString *str, void (*additional_info)(GString *))
g_string_append(str, "an unknown OS");
#endif
+#ifndef _WIN32
+ /* Locale */
+ if ((lang = getenv ("LANG")) != NULL)
+ g_string_append_printf(str, ", with locale %s", lang);
+ else
+ g_string_append(str, ", without locale");
+#endif
+
/* Libpcap */
g_string_append(str, ", ");
get_runtime_pcap_version(str);