Can not use pipe when unicode exist in stdout

Bug #1250490 reported by Jeffrey Zhang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-keystoneclient
Fix Released
Medium
Jeffrey Zhang

Bug Description

When there is unicode exist in the keystone client's output, error raise when using linux pipe to do more thing.

How to reproduce
1. Create user using unicode

$ keystone --os-endpoint=http://localhost:35357/v2.0/ --os-token=ADMIN --debug user-create --name "张雷" --pass '123' --enabled true

2. get all the user with grep command, error raise

keystone --os-endpoint=http://localhost:35357/v2.0/ --os-token=ADMIN user-list | grep True
'ascii' codec can't encode characters in position 223-224: ordinal not in range(128)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-keystoneclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/56033

Changed in python-keystoneclient:
assignee: nobody → Jeffrey Zhang (jeffrey4l)
status: New → In Progress
Dolph Mathews (dolph)
description: updated
Dolph Mathews (dolph)
Changed in python-keystoneclient:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-keystoneclient (master)

Reviewed: https://review.openstack.org/56033
Committed: http://github.com/openstack/python-keystoneclient/commit/98231f6ccdbbf248d479efef09b88f7abee49383
Submitter: Jenkins
Branch: master

commit 98231f6ccdbbf248d479efef09b88f7abee49383
Author: Lei Zhang <email address hidden>
Date: Tue Nov 12 22:23:49 2013 +0800

    Encode the text before print it to console

    Closes-Bug: #1250490
    Change-Id: I516806a0f8a136bb66c64dcdcd07cee6d297e619

Changed in python-keystoneclient:
status: In Progress → Fix Committed
Dolph Mathews (dolph)
Changed in python-keystoneclient:
milestone: none → 0.4.2
Dolph Mathews (dolph)
Changed in python-keystoneclient:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.