]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/standalone/mon/osd-create-pool: fix utf-8 grep LANG 32711/head
authorSage Weil <sage@redhat.com>
Fri, 17 Jan 2020 20:19:53 +0000 (14:19 -0600)
committerSage Weil <sage@redhat.com>
Fri, 17 Jan 2020 20:19:53 +0000 (14:19 -0600)
This needs en_US.UTF-8... en_US does not work.

Fixes: https://tracker.ceph.com/issues/43422
Signed-off-by: Sage Weil <sage@redhat.com>
qa/standalone/mon/osd-pool-create.sh

index b14ca803bdf6d46d79c9a2e6e4aaf6ae31adae1b..f8ef5bd9d4a1d269da51893ab80424d10cf23ee9 100755 (executable)
@@ -200,12 +200,15 @@ function TEST_utf8_cli() {
     # the fix for http://tracker.ceph.com/issues/7387.  If it turns out
     # to not be OK (when is the default encoding *not* UTF-8?), maybe
     # the character '黄' can be replaced with the escape $'\xe9\xbb\x84'
+    OLDLANG="$LANG"
+    export LANG=en_US.UTF-8
     ceph osd pool create 黄 16 || return 1
     ceph osd lspools 2>&1 | \
         grep "黄" || return 1
     ceph -f json-pretty osd dump | \
         python3 -c "import json; import sys; json.load(sys.stdin)" || return 1
     ceph osd pool delete 黄 黄 --yes-i-really-really-mean-it
+    export LANG="$OLDLANG"
 }
 
 function TEST_pool_create_rep_expected_num_objects() {