Recent

Author Topic: [Solved]I'm puzzled and bewildered...  (Read 1297 times)

cdbc

  • Hero Member
  • *****
  • Posts: 2598
    • http://www.cdbc.dk
[Solved]I'm puzzled and bewildered...
« on: March 26, 2025, 06:32:19 pm »
Hi
edit: See last post for explanation & fix
So, I'm fiddling with console & unicode in forked TTextCanvas code from @Warfley... Pretty nice  :)
Now here's the completely 'Bonkers' situation, that I'm looking at:
In KDE's Konsole it's working great =^
In XTerm ...NOT so much, have a 'looksee' at the attached pictures...
What I don't understand is this: Standard codepage on Linux is UTF8, here too, so why the H*ll aren't the two different terminal-emulators agreeing?!?

Any input on this is greatly appreciated...

Regards Benny
« Last Edit: March 27, 2025, 10:42:10 am by cdbc »
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Thaddy

  • Hero Member
  • *****
  • Posts: 18726
  • To Europe: simply sell USA bonds: dollar collapses
Re: I'm puzzled and bewildered...
« Reply #1 on: March 26, 2025, 07:01:58 pm »
Benny, what does export tell you? (forgot the grep for it) Analize the export
If Europe sells their USA bonds the USD will collapse. Europe can affort that given average state debts. The USA can't affort that. Just an advice...

cdbc

  • Hero Member
  • *****
  • Posts: 2598
    • http://www.cdbc.dk
Re: I'm puzzled and bewildered...
« Reply #2 on: March 26, 2025, 07:25:29 pm »
Hi Thaddy
Export tells me this:
Code: Text  [Select][+][-]
  1. declare -x BROWSER="/usr/bin/www-browser"
  2. declare -x CANBERRA_DRIVER="pulse"
  3. declare -x DBUS_SESSION_BUS_ADDRESS="unix:path=/tmp/dbus-9RsaFVTbRm,guid=bffe9c1144ca91d80662ea3767e17a57"
  4. declare -x DERBY_HOME="/usr/lib/jvm/jdk-15.0.2/db"
  5. declare -x DESKTOP_SESSION="/etc/X11/dm/Sessions/99Plasma"
  6. declare -x DESKTOP_STARTUP_ID="red;1742930837;545573;3153_TIME100734539"
  7. declare -x DISPLAY=":0"
  8. declare -x GCONF_TMPDIR="/tmp"
  9. declare -x GDM_LANG="en_GB.UTF-8"
  10. declare -x GIT_PAGER="less -FRS"
  11. declare -x GP_LANGUAGE="en"
  12. declare -x GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/bc/.gtkrc-2.0:/home/bc/.config/gtkrc-2.0"
  13. declare -x GTK_OVERLAY_SCROLLING="0"
  14. declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/bc/.gtkrc:/home/bc/.config/gtkrc"
  15. declare -x G_FILENAME_ENCODING="@locale"
  16. declare -x HISTCONTROL="ignoredups"
  17. declare -x HISTSIZE="1000"
  18. declare -x HOME="/home/bc"
  19. declare -x HOSTNAME="red"
  20. declare -x INPUTRC="/etc/inputrc"
  21. declare -x J2REDIR="/usr/lib/jvm/jdk-15.0.2"
  22. declare -x J2SDKDIR="/usr/lib/jvm/jdk-15.0.2"
  23. declare -x JAVA_HOME="/usr/lib/jvm/jdk-15.0.2"
  24. declare -x KDE_APPLICATIONS_AS_SCOPE="1"
  25. declare -x KDE_FULL_SESSION="true"
  26. declare -x KDE_SESSION_UID="1000"
  27. declare -x KDE_SESSION_VERSION="5"
  28. declare -x LANG="en_GB.UTF-8"
  29. declare -x LANGUAGE="en_GB:en"
  30. declare -x LC_ADDRESS="en_GB.UTF-8"
  31. declare -x LC_COLLATE="en_GB.UTF-8"
  32. declare -x LC_CTYPE="en_GB.UTF-8"
  33. declare -x LC_IDENTIFICATION="en_GB.UTF-8"
  34. declare -x LC_MEASUREMENT="da_DK.UTF-8"
  35. declare -x LC_MESSAGES="en_GB.UTF-8"
  36. declare -x LC_MONETARY="da_DK.UTF-8"
  37. declare -x LC_NAME="da_DK.UTF-8"
  38. declare -x LC_NUMERIC="da_DK.UTF-8"
  39. declare -x LC_PAPER="da_DK.UTF-8"
  40. declare -x LC_SOURCED="1"
  41. declare -x LC_TELEPHONE="da_DK.UTF-8"
  42. declare -x LC_TIME="da_DK.UTF-8"
  43. declare -x LESS="-MM"
  44. declare -x LESSCHARSET="utf-8"
  45. declare -x LESSKEY="/etc/.less"
  46. declare -x LESSOPEN="|/usr/bin/lesspipe.sh %s"
  47. declare -x LOGNAME="bc"
  48. declare -x MAIL="/var/spool/mail/bc"
  49. declare -x MDV_MENU_STYLE="discovery"
  50. declare -x MESA_SHADER_CACHE_DISABLE="1"
  51. declare -x META_CLASS="desktop"
  52. declare -x NLSPATH="/usr/share/locale/%l/%N"
  53. declare -x OLDPWD="/home/bc"
  54. declare -x PATH="/home/bc/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/libexec:/usr/games:/usr/lib64/qt5/bin:/usr/lib64/qt6/bin:/usr/lib64/qt4/bin:/usr/sbin:/sbin"
  55. declare -x PS1="\\u@\\h \\W\$(__git_ps1 \" [%s]\")\\\$ "
  56. declare -x PWD="/home/bc/tmp/nothing_fancy/console/boxdrawing/no-crt"
  57. declare -x PYTHONDONTWRITEBYTECODE="1"
  58. declare -x PYTHONSTARTUP="/etc/pythonrc.py"
  59. declare -x QML_DISABLE_DISK_CACHE="1"
  60. declare -x QT4DOCDIR="/usr/share/doc/qt4"
  61. declare -x QT5DOCDIR="/usr/share/doc/qt5"
  62. declare -x QT6DOCDIR="/usr/share/doc/qt6"
  63. declare -x QTDIR="/usr/lib64/qt4"
  64. declare -x QTDIR5="/usr/lib64/qt5"
  65. declare -x QTDIR6="/usr/lib64/qt6"
  66. declare -x QT_AUTO_SCREEN_SCALE_FACTOR="0"
  67. declare -x SESSION_MANAGER="local/red:@/tmp/.ICE-unix/3134,unix/red:/tmp/.ICE-unix/3134"
  68. declare -x SHELL="/bin/bash"
  69. declare -x SHLVL="1"
  70. declare -x SYSFONT="lat0-16"
  71. declare -x TERM="xterm"
  72. declare -x TERMINOLOGY="1"
  73. declare -x TERM_PROGRAM="terminology"
  74. declare -x TERM_PROGRAM_VERSION="1.8.1"
  75. declare -x TMP="/tmp/"
  76. declare -x TMPDIR="/tmp/"
  77. declare -x USER="bc"
  78. declare -x WINDOWID="41943042"
  79. declare -x XAUTHORITY="/home/bc/.Xauthority"
  80. declare -x XCURSOR_SIZE="24"
  81. declare -x XCURSOR_THEME="breeze_cursors"
  82. declare -x XDG_CONFIG_DIRS="/home/bc/.config/kdedefaults:/etc/xdg/discovery:/etc/xdg"
  83. declare -x XDG_CURRENT_DESKTOP="KDE"
  84. declare -x XDG_RUNTIME_DIR="/var/run/user/1000"
  85. declare -x XDG_SEAT="seat0"
  86. declare -x XDG_SEAT_PATH="/org/freedesktop/DisplayManager/Seat0"
  87. declare -x XDG_SESSION_CLASS="user"
  88. declare -x XDG_SESSION_COOKIE="red-1742830167.338924-254766390"
  89. declare -x XDG_SESSION_DESKTOP=""
  90. declare -x XDG_SESSION_PATH="/org/freedesktop/DisplayManager/Session1"
  91. declare -x XDG_SESSION_TYPE="x11"
  92. declare -x XDG_VTNR="8"
  93. declare -x XMODIFIERS="@im=none"
  94. declare -x XTERM_256_COLORS="1"
  95.  
I'll have to have a longer look, to see if something 'glares' at me...  %)
Thanks for the tip mate =^
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

cdbc

  • Hero Member
  • *****
  • Posts: 2598
    • http://www.cdbc.dk
Re: [Solved]I'm puzzled and bewildered...
« Reply #3 on: March 27, 2025, 11:08:12 am »
Hi
...And there lies the damned dog buried: System Locale  >:D
Although being a Dane \o/ I utterly HATE Danish on my desktop!!!  >:(
Thus I've been running a 'bastard' system in English with just a few pinpointed Danish localisations - currency, numbers and clock etc...

So, after sifting through the 'export's of my system, it suddenly hit me  :P
:: English speaking have no real need for full UTF8 or Unicode, i.e.: no æøå ÆØÅ Ü Ö Ä ö ü ä Ñ ñ etc... So apps sometimes defaults to CP 8859-1 which maps pretty close to utf8 & ascii -- Close, but no cigar!
Why the box-characters fall into that category, I dunno!

I thought to myself, WTH I'll give it a shot and install Danish locale on my system   ...and Lo and Behold => NOW IT WORKS FLAWLESSLY  ::)
It turns out that 'Konsole' doesn't give a flying F*CK about system locale and just use UTF8 / Unicode, period.
Whereas the other terminal emulators are staying loyal / true to the system locale, with a potential fallback to 8859-1   ...Who'd have thunk it  %)

So now I'm left with 'nudging' every application into using English  >:D
Oh Well, could have been worse, right  ;D
Screenshot from XTerm attached...
Thanks Thaddy  ;)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

tetrastes

  • Hero Member
  • *****
  • Posts: 737
Re: [Solved]I'm puzzled and bewildered...
« Reply #4 on: March 27, 2025, 02:52:12 pm »
Just out of curiosity, did you try UXTerm?

cdbc

  • Hero Member
  • *****
  • Posts: 2598
    • http://www.cdbc.dk
Re: [Solved]I'm puzzled and bewildered...
« Reply #5 on: March 27, 2025, 03:02:11 pm »
Hi
Nope. I have 4 different terminals to work with on a daily basis, all now working great, no need for more...
- Konsole
- Terminology
- QTerminal
- XTerm
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

tetrastes

  • Hero Member
  • *****
  • Posts: 737
Re: [Solved]I'm puzzled and bewildered...
« Reply #6 on: March 27, 2025, 03:37:01 pm »
UXTerm is just XTerm launched with some parameters fitted for UTF-8 locale. It usually presents along XTerm.

 

TinyPortal © 2005-2018