Issue Details (XML | Word | Printable)

Key: CORE-362
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Frank Schlottmann-Goedde
Reporter: unoengborg
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Impossible to enter certain characters in isql

Created: 03/Oct/04 12:00 AM   Updated: 27/Mar/14 11:51 AM
Component/s: ISQL
Affects Version/s: None
Fix Version/s: 3.0 Alpha 2

Time Tracking:
Not Specified

SF_ID: 1039201


 Description  « Hide
SFID: 1039201#
Submitted By: unoengborg

I can't input Swedish characters ???????????? at the isql
command line. When I press the key nothing happens and
the cursor remain in the same place.

I run ISQL on Linux (Fedora 2)
ISQL Version: LI-V1.5.1.4481 Firebird 1.5

My LANG environment variable is set to sv_SE.UTF-8

If I do a select that returns tuples containing ???????????? they
display just fine. So the bug only seam to affect input.

 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Michal Kubeček added a comment - 25/Jun/06 04:31 AM
This is a known issue of editline library which isql uses for line editing: editline does not work correctly with UTF-8. There are two ways to solve the problem: either fix editline or use another library. Unfortunately the best replacement (readline) is unusable because of its license (GPL).

Philippe Makowski added a comment - 27/Nov/07 08:11 AM
As this bug is not fixed, you can use, under isql , the EDIT command
by default it call Vi, and there you can input any characters you wanted

Popa Adrian Marius added a comment - 27/Oct/10 12:47 PM
In debian/ubuntu we use libedit under bsd licence
i think it can replace the old editline
http://packages.debian.org/sid/libedit-dev
http://packages.qa.debian.org/libe/libedit.html

I will check if it supports UTF-8

Frank Schlottmann-Goedde added a comment - 04/Dec/11 01:53 PM
I found an editline replacement (http://www.thrysoee.dk/editline/ ) that handles unicode characters correctly, and meanwhile have an isql working with vi-keymaps. I still need to rework the emacs maps or even create a new mapping to ease line editing a bit. But it's on its way.

Philippe Makowski added a comment - 04/Dec/11 02:29 PM
good, yes it is what is packaged in most Linux distro
Fedora : http://pkgs.fedoraproject.org/gitweb/?p=libedit.git;a=summary
Mageia : http://svnweb.mageia.org/packages/cauldron/libedit/
...

Frank Schlottmann-Goedde added a comment - 04/Dec/11 02:48 PM
Yes, but unfortunately it doesn't work out of the box. It has to be patched at several places to get it to display unicode characters correctly in vi-mode, and it doesn't support them in emacs-mode at all.

Alexander Peshkov added a comment - 23/Aug/13 11:10 AM
I've replaced in trunk editline with version, suggested by Frank. Please make sure that this works, if yes - close this ticket please.

Frank Schlottmann-Goedde added a comment - 26/Aug/13 11:36 AM
I'll check it as soon as possible, thank you.

Frank Schlottmann-Goedde added a comment - 27/Aug/13 05:05 PM
I have checked in the last missing bits to enable UTF8 support for isql and editline.

Frank Schlottmann-Goedde added a comment - 27/Aug/13 05:07 PM