]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/ceph_argparse: do not choke on non-ascii prefix 5275/head
authorKefu Chai <kchai@redhat.com>
Fri, 17 Jul 2015 07:57:04 +0000 (15:57 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 17 Jul 2015 08:04:16 +0000 (16:04 +0800)
commit1b2e70fa6b08c40f5530449141030d9452daa7e7
tree3d05f44084ce46a6cdc4a8024597ddb0d43d8a7d
parent160053c1e3397c26a36e983641a31c0f838b1ff5
pybind/ceph_argparse: do not choke on non-ascii prefix

* add a test for it
* add the comments for utf-8 encoding, which is needed by python
  module loader. because the new test has a non-ascii string in
  it. it's the Chinese translation of "octopus and squid".

Fixes: #12287
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/ceph_argparse.py
src/test/pybind/test_ceph_argparse.py