Skip to content

allow inputing non-ascii char with psql #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

allan-simon
Copy link

you can easily test this:

try without, then run

docker exec -it your_instance psql

versus

docker exec -it your_instance -c 'LD_PRELOAD=/lib/x86_64-linux-gnu/libreadline.so.6.3 TERM=xterm psql'

in one you can input non-ascii character (like french accent or cyrilics) , in the other you can't

@tianon
Copy link
Member

tianon commented Apr 9, 2018

See also #310 and thus #355 (which should've already fixed this):

$ docker pull postgres:9.6
9.6: Pulling from library/postgres
Digest: sha256:8df3344385deb0d5d781c442b2e275f7c321d601652d6317ce25ed8ffad03427
Status: Image is up to date for postgres:9.6

$ docker run -dit --name pg postgres:9.6
ea281fd1ca1d13b5482d761046e45d79755e160c4a272acc70d64c4caf3e37e2

$ docker exec -it pg psql -U postgres
psql (9.6.8)
Type "help" for help.

postgres=# SELECT 'נראה עובד?';
  ?column?  
------------
 נראה עובד?
(1 row)

postgres=# SELECT 'Кажется, работает?';
      ?column?      
--------------------
 Кажется, работает?
(1 row)

@yosifkit yosifkit closed this May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants