[SERVER-272] Foreign characters in shell Created: 31/Aug/09  Updated: 29/May/12  Resolved: 17/Nov/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 0.9.7
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: sandstrom Assignee: Tad Marshall
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS X 10.5


Issue Links:
Duplicate
duplicates SERVER-2939 Support Unicode fully in the Mongo sh... Closed
Participants:

 Description   

I'm trying to type in my name in the db shell, which is "Sandström". The same goes for å and ä.

> use staging
switched to db staging
> db.users.findOne({lastname:"Sandstr
-------- [ now I press the character ö on my keyboard ] --------
(arg: 6) db.users.findOne({lastname:"Sandstr

As can be seen no ö is shown and "(arg: 6)" shows up instead.

It should be possible to emulate this by choosing the Swedish keyboard layout in OS X and then pressing the key to the right of "L" on an american keyboard. Use the keyboard viewer from »International« if you have trouble finding the ö key. Don't know if linux have similar capabilities for changing keyboard layouts virtually.



 Comments   
Comment by Tad Marshall [ 17/Nov/11 ]

Closing as a duplicate (after linking to master ticket).

Comment by Tad Marshall [ 17/Nov/11 ]

This should be fixed when Unicode support is running.

Comment by Matthias Goetzke [ 09/Sep/10 ]

On windows (win 7 64) the shell does also not crash but shows a "malformed UTF-8 character sequence" error message.

Also when finding without qualifier the results show incorrect ASCII characters instead of the correct UTF-8 character that is returned with the drivers. E.g. instead of Ü in German it returns a angled pipe symbol. Obviously the shell is interpreting or at least outputting data as ASCII not UTF-8.

tested with 1.6.2

Comment by Michael Dirolf [ 11/Feb/10 ]

seeing the same behavior as on 10.5 - libreadline is still symlinked to libedit as well...

Comment by Michael Dirolf [ 11/Feb/10 ]

testing now.

Comment by Eliot Horowitz (Inactive) [ 11/Feb/10 ]

has anyone tested 10.6?

Comment by Eliot Horowitz (Inactive) [ 17/Oct/09 ]

Have we tried this on 10.6? Any better?

Comment by sandstrom [ 06/Oct/09 ]

åäö and similar characters used to work a few versions back, if I'm not mistaken.

Comment by Michael Dirolf [ 01/Sep/09 ]

the problem is that on OS X builds we link against the libreadline in /usr/lib, which is actually just a symlink for libedit, which doesn't support international character input.

we probably should make linking against an actual readline (via macports or something) preferable to linking against libedit, but need to take a look at this with eliot because there were some earlier issues with something along those lines.

Comment by sandstrom [ 31/Aug/09 ]

Still running 0.9.7 if that would make a difference.

Comment by Michael Dirolf [ 31/Aug/09 ]

Could not reproduce exactly on OS X 10.5, MongoDB 1.0 - I don't see the character but I also don't get (arg: 6). Since the character shows up on the regular terminal view fine it looks like it might be an issue with the mongo shell - will look into it.

Generated at Thu Feb 08 02:53:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.