From 65fbc620b66c806b4680dcf4efce92b2ac7cb93a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 17 Jan 2020 14:19:53 -0600 Subject: [PATCH] qa/standalone/mon/osd-create-pool: fix utf-8 grep LANG This needs en_US.UTF-8... en_US does not work. Fixes: https://tracker.ceph.com/issues/43422 Signed-off-by: Sage Weil --- qa/standalone/mon/osd-pool-create.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qa/standalone/mon/osd-pool-create.sh b/qa/standalone/mon/osd-pool-create.sh index b14ca803bdf6..f8ef5bd9d4a1 100755 --- a/qa/standalone/mon/osd-pool-create.sh +++ b/qa/standalone/mon/osd-pool-create.sh @@ -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() { -- 2.47.3