From 44937634a3b2108f8ff2181c178754c0d960fb15 Mon Sep 17 00:00:00 2001
From: Darshit Shah <darnir@gmail.com>
Date: Tue, 8 Dec 2015 14:45:01 +0100
Subject: [PATCH] Re-enable test on multibyte locale in Travis

* .travis.yml: Use Russian locale instead of Japanese since it seems to
be more complete
* contrib/travis-ci: Re-enable testing on a Russian locale
---
 .travis.yml       | 5 ++---
 contrib/travis-ci | 9 ++-------
 2 files changed, 4 insertions(+), 10 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index bb9017b2..347f0b86 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -9,8 +9,7 @@ notifications:
     email:
         recipients:
             - darnir@gmail.com
-            - bug-wget@gnu.org
-        on_success: change
+        on_success: always
         on_failure: always
 
 env:
@@ -42,7 +41,7 @@ addons:
             - python3
             - valgrind
             - language-pack-tr
-            - language-pack-ja
+            - language-pack-ru
 
 script:
     - make distclean || true
diff --git a/contrib/travis-ci b/contrib/travis-ci
index 6694094e..90ce3001 100755
--- a/contrib/travis-ci
+++ b/contrib/travis-ci
@@ -14,7 +14,7 @@ esac
 # For some reason. /proc/cpuinfo reports 16 cores on Travis, while the docs
 # claim that each instance has only 2 cores. We believe the docs and force a
 # value of only 2 here.
-CORES=2
+CORES=3
 
 # Define a large number of Warning flags for the compiler. Hopefully, someone
 # will sit and analyze the output to clean the warnings from the codebase.
@@ -34,12 +34,7 @@ for options in "" "--disable-ipv6"; do
   echo "  ./configure $DISTCHECK_CONFIGURE_FLAGS CFLAGS=\"$CFLAGS\""
   ./configure $DISTCHECK_CONFIGURE_FLAGS CFLAGS="$CFLAGS"
 
-  # We would like to have more languages tested here. Currently, there is a
-  # problem in the translations file for Turkish which causes the progress bar
-  # to assert fail. Apart from that, at least one another language with multi
-  # byte and multi column characters.
-  # TODO: Add Japanese and Turkish LANG for test
-  for xLCALL in C; do
+  for xLCALL in "ru_RU.UTF-8" "C" "tr_TR.UTF-8"; do
     export TESTS_ENVIRONMENT="LC_ALL=$xLCALL VALGRIND_TESTS=1"
     echo "    TESTS_ENVIRONMENT=\"$TESTS_ENVIRONMENT\" make distcheck CFLAGS=$CFLAGS -j$CORES"
     make distcheck CFLAGS="$CFLAGS" -j$CORES