Comments (11)
from pspg.
Test case output:
and dump:
from pspg.
I don't see any issue on these data in my Gnome Terminal - can me send a screenshot? less doesn't use ncurses, so lot of things can be different.
from pspg.
Same problem here
❯ echo $LANG
fr_FR.UTF-8
❯ echo $LC_CTYPE fr_FR.UTF-8
❯ cat .psqlrc #pager is pspg
[...]
\setenv PAGER 'pspg -s 0'
\set border 2
[...]
❯ psql -d postgres
[local] dtm@postgres=#
[local] dtm@postgres=# SELECT 'un bel été' from generate_series(1, 100);
The output gives this:
And if I try with less
as the pager:
[local] dtm@postgres=# \setenv PAGER 'less'
[local] dtm@postgres=# SELECT 'un bel été' from generate_series(1, 100);
First I thought it was because I used PuttY (Kitty here) on windows, but same apply to a terminal window in Ubuntu 16.04 (although it is within a VirtualBox machine).
Hope this clarifies.
from pspg.
It is work on my Linux - Fedora 25. Please, can you show log of compilation. Maybe there are some issue with ncurses. "less" doesn't use ncurses, so there should not be this problem.
from pspg.
from pspg.
Maybe it is a ncurses
vs. ncursesw
issue:
- ruby/curses#6: says that
ncursesw
should be used for UTF8 chars ("wide" chars) - openwrt/packages#526
Sorry, I am no expert at all at C programming (nor at SQL actually), so it might not be a good lead... just some googling around.
Anyway hope this helps!
from pspg.
from pspg.
Ok it is working now.
What I did:
- Install latest dev lib of ncursesw:
sudo apt-get install libncursesw5-dev
- Update the repo
git pull
- Configure
❯ ./configure datamart@occitane-datamart-pink
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ncursesw via pkg-config... yes
checking for working ncursesw/curses.h... yes
checking for working ncursesw.h... no
checking for working ncurses.h... yes
configure: creating ./config.status
config.status: creating config.make
- Make
❯ make datamart@occitane-datamart-pink
gcc src/pspg.c -o pspg -g -O2 -lncursesw -ltinfo
- Make install
❯ _ make install datamart@occitane-datamart-pink
tools/install.sh bin pspg "/usr/local/bin"
And now it is OK.
@albertca may be that could help you too.
from pspg.
from pspg.
from pspg.
Related Issues (20)
- segfault when watching non existing --querystream file HOT 4
- Saving to CSV on large number of rows only exports partial rows HOT 22
- Sort doesn't work... HOT 3
- Feature: Sort multiple columns individually as a sequence of sort steps HOT 4
- difference in pgcli and psql table behavior in pspg HOT 4
- Feature: Handle long columns. Add option for max column width, and keybindings to scroll within the long column, etc. HOT 2
- NullPointerException when running pspg in sqlcl HOT 3
- Exactly what data does pspg receive from psql? HOT 1
- warning: integer overflow in expression of type ‘long int’ results in ‘0’ HOT 2
- Feature Request: Customize the word wrap character HOT 4
- Segfault on KOI8-RU file HOT 4
- Clearer + more visible installation instructions? HOT 6
- Windows support? HOT 5
- Getting issues while trying to query out data with postgis HOT 1
- `No data` on files with more than 1000 lines HOT 14
- How do you exit the menu? HOT 42
- .pspg_conf file format - FYI for users HOT 1
- nushell support ❤️ HOT 3
- Feature request: possibility for faster watch time HOT 6
- Add support for clip.exe inside WSL2 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pspg.