Opened 9 years ago

Last modified 8 years ago

#23 new defect

Unicode broken in ncurses / (slang)

Reported by: sam Owned by: sam
Priority: critical Milestone: Final
Component: core Version: SVN
Keywords: Cc:
Product: libcaca

Description

In some terminals (exact list to be investigated) ncurses fails to display Unicode characters even though the terminal is perfectly Unicode-capable.

Change History (5)

comment:1 Changed 9 years ago by sam

  • Priority changed from major to critical

comment:2 in reply to: ↑ description Changed 9 years ago by anonymous

  • Summary changed from Unicode broken in ncurses to Unicode broken in ncurses / (slang)

Replying to sam:

In some terminals (exact list to be investigated) ncurses fails to display Unicode characters even though the terminal is perfectly Unicode-capable.

It seems I've the very same issue with SLang, too.

comment:3 Changed 9 years ago by sam

  • Summary changed from Unicode broken in ncurses / (slang) to libcaca: Unicode broken in ncurses / (slang)

comment:4 Changed 8 years ago by sam

  • Component changed from libcaca to core
  • Product set to libcaca
  • Summary changed from libcaca: Unicode broken in ncurses / (slang) to Unicode broken in ncurses / (slang)

comment:5 Changed 8 years ago by pterjan

The situation here:

  • By default, my locale is using ISO-8859-15 encoding, gnome terminal expects ISO-8859-15, and both slang and ncurses are broken
  • If I tell gnome-terminal to expect UTF-8, slang is OK but not ncurses
  • If I use an UTF-8 locale and tell gnome-terminal to expect UTF-8, both are OK
  • If I use an UTF-8 locale and tell gnome-terminal to expect ISO-8859-15, both are broken but that's expected :)

So it seems that ncurses recodes its output to current locale encoding while slang does not

Note: See TracTickets for help on using tickets.