I have ported and cross-compiled the calcurse app to Blackberry 10 as part of the Berrymuch project (https://github.com/BerryFarm/berrymuch/tree/master/ports-wip/calcurse) however I am facing display issues with pseudo-graphical characters. When launched in the term48 terminal app (TERM=xterm-256color) the separators are displayed as letters. broken output
However if the same app is started in tmux the separators appear fine. ok output
I've tried running with TERM=screen in the terminal itself but that didn't solve the issue.
Does anyone have a theory where it might be going wrong?
I suspect either a) Buggy ncurses on bb10 b) Broken ncurses feature detection in the app c) Broken terminal feature detection d) locale information missing in the system
LC_ALL is set to en_US.UTF-8. Setting NCURSES_NO_UTF8_ACS=1 doesn't help either. ldd shows that calcurse is linked against libncursesw.so.1
I think you are on the right track with NCURSES_NO_UTF8_ACS - tmux will use UTF-8 for drawing the ACS by default if it thinks the terminal supports it (because your LANG contains UTF-8), so it sounds like your terminal supports UTF-8 but does not support ACS properly. Does the following work outside tmux (it should show symbols rather than ASCII):
Modern ncurses should also use UTF-8, I don't know why it is not. You might want to check what ncurses version you are using and perhaps try a newer one, there is also the U8 terminfo(5) capability, you could try a custom entry with that set to 0 or 1.