[glom] Add a test for the locale problem and for a missing translated date format.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Add a test for the locale problem and for a missing translated date format.
- Date: Tue, 18 Oct 2011 11:28:39 +0000 (UTC)
commit 743ce0db41487ef06e4c8b1c716d478cba7a2202
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Oct 18 13:28:25 2011 +0200
Add a test for the locale problem and for a missing translated date format.
* tests/test_glom_date_in_locales.sh: A new test that sets LANG and then tries
to start glom with it's date-checking option, to see if any fail.
However, this is not run during "make check", or even distributed, because
it depends on you having the locales installed and configured.
ChangeLog | 9 +++++++++
tests/test_glom_date_in_locales.sh | 10 ++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 17a6276..3b8e49d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2011-10-18 Murray Cumming <murrayc murrayc com>
+ Add a test for the locale problem and for a missing translated date format.
+
+ * tests/test_glom_date_in_locales.sh: A new test that sets LANG and then tries
+ to start glom with it's date-checking option, to see if any fail.
+ However, this is not run during "make check", or even distributed, because
+ it depends on you having the locales installed and configured.
+
+2011-10-18 Murray Cumming <murrayc murrayc com>
+
Add try/catch around all uses of std::locale("").
* glom/libglom/data_structure/glomconversions.cc: Add try/catch with a warning
diff --git a/tests/test_glom_date_in_locales.sh b/tests/test_glom_date_in_locales.sh
new file mode 100755
index 0000000..e28ec95
--- /dev/null
+++ b/tests/test_glom_date_in_locales.sh
@@ -0,0 +1,10 @@
+#/bin/sh -e
+
+locales=("en_US.UTF-8" "en_GB.UTF-8" "en_CA.UTF-8" "de_DE.UTF-8" "fr_FR.UTF-8" "hu_HU.UTF-8")
+
+for x in "${locales[ ]}"
+do
+ echo testing with LANG="$x"
+ export LANG="$x"
+ ${buildir}glom --debug-date-check || exit 1
+done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]