Bug 1197479

Summary: mysql client cannot input Chinese
Product: [Fedora] Fedora Reporter: robberphex
Component: community-mysqlAssignee: Honza Horak <hhorak>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 21CC: hhorak, jdornak, jstanek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-22 00:55:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1202022, 1460155    
Bug Blocks:    

Description robberphex 2015-03-01 16:56:10 UTC
Description of problem:

use command mysql connected MySQL server, cannot input Chinese(non-ASCII UTF-8 characters).

Version-Release number of selected component (if applicable):

community-mysql-5.6.21-5.fc21.x86_64

How reproducible:


Steps to Reproduce:
1. connect to MySQL server : #mysql -h 172.17.0.2 -uroot -p
2. input password
3. try to input Chinese via IBus.

Actual results:
cannot input Chinese. mysql ignore the input. and press enter, mysql cannot read anything.

Expected results:
When you input Chinese, it will be shown.

Additional info:

I download mysql-5.6.21.tar.gz, it works normally.
Then, I appply all patch of http://pkgs.fedoraproject.org/cgit/community-mysql.git , then execute it, also works normally.

So, I guess the problem is in file 'community-mysql.spec'.

Comment 1 robberphex 2015-03-01 16:58:45 UTC
Notice:

Even this bug is similar to https://bugzilla.redhat.com/show_bug.cgi?id=1187469 ,
but the official source(mariadb-10.0.17.tar.gz or mariadb-10.0.15.tar.gz from mariadb.org) also cannot input non-ASCII.

In this bug, the official source works, rpm package doesn't work.

Comment 2 Honza Horak 2015-03-14 19:25:52 UTC
(In reply to robberphex from comment #1)
> Even this bug is similar to
> https://bugzilla.redhat.com/show_bug.cgi?id=1187469 ,
> but the official source(mariadb-10.0.17.tar.gz or mariadb-10.0.15.tar.gz
> from mariadb.org) also cannot input non-ASCII.

Yes, this seems to be the same issue.
 
> In this bug, the official source works, rpm package doesn't work.

I think this is caused by using bundled readline when you used upstream tar ball.. I hope this may be fixed for all packages at once in libedit directly (bug #1202022).

Comment 3 robberphex 2015-03-22 00:55:07 UTC
(In reply to Honza Horak from comment #2)
> (In reply to robberphex from comment #1)
> > Even this bug is similar to
> > https://bugzilla.redhat.com/show_bug.cgi?id=1187469 ,
> > but the official source(mariadb-10.0.17.tar.gz or mariadb-10.0.15.tar.gz
> > from mariadb.org) also cannot input non-ASCII.
> 
> Yes, this seems to be the same issue.
>  
> > In this bug, the official source works, rpm package doesn't work.
> 
> I think this is caused by using bundled readline when you used upstream tar
> ball.. I hope this may be fixed for all packages at once in libedit directly
> (bug #1202022).

the Package community-mysql-5.6.23-1.fc21.x86_64 and mariadb-10.0.15-4.fc21.x86_64 with libedit-3.1-10.20141030cvs.fc21.x86_64 works perfectly!

Thank you!