drizzle commandline client has control characters / binary data in output

Bug #740433 reported by Clint Byrum
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Confirmed
Low
Unassigned

Bug Description

I suspect this is an off by one situation. Notice this test run on Ubuntu natty:

clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --version
Drizzle client 7 build 2011.03.11, for pc-linux-gnu (x86_64) using readline 6.2
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --help | grep mysql
Binary file (standard input) matches
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --help | grep mysql
  --protocol arg (=mysql) The protocol of connection (mysql or drizzle).
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --help | grep mysql
Binary file (standard input) matches
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --help | grep mysql
Binary file (standard input) matches
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --help | grep mysql
Binary file (standard input) matches
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --help | grep mysql
  --protocol arg (=mysql) The protocol of connection (mysql or drizzle).
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --help | grep mysql
  --protocol arg (=mysql) The protocol of connection (mysql or drizzle).
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$

It may be related to the password option:

clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --help|grep -I '[[:cntrl:]]'
  -P [ --password ] arg (=) Password to use when connecting to server. If
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --help|grep -I '[[:cntrl:]]'
  -P [ --password ] arg (=) Password to use when connecting to server. If
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$ drizzle --help|grep -I '[[:cntrl:]]'
clint@clint-MacBookPro:~/pkg/drizzle/bzr/natty-no-run-as-root$

Changed in drizzle:
status: New → Confirmed
importance: Undecided → Low
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.