Bug 1197479 - mysql client cannot input Chinese
Summary: mysql client cannot input Chinese
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: community-mysql
Version: 21
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Honza Horak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1202022 1460155
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-01 16:56 UTC by robberphex
Modified: 2017-06-09 09:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-03-22 00:55:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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!


Note You need to log in before you can comment on or make changes to this bug.