Tiny Core Linux
Tiny Core Base => CorePlus => Topic started by: t18 on May 15, 2025, 03:36:45 AM
-
Hello,
my application doesn't show line borders like the attached wp_ok.png
but like the attached wp_tc.png
Anything I can do?
Many thanks
-
It looks like you need one or more of:
A terminal emulator that supports unicode like rxvt
A font extension that supports unicode
An appropriate locale to be set
-
Hi t18
I've seen mc (midnight commander) behave like that
on the repo server. I fixed it like this:
LC_ALL=C mc
Assuming Wordperfect is called wp, try starting it like this:
LC_ALL=C wp
If that works, add this to .ashrc:
alias wp='LC_ALL=C wp'
-
Hi All,
installing unifont, xfonts-unifont and the utility program has no effect.
And LC_ALL=C doesn't work.
I'm running Xvesa however.
-
And Midnight Commander works fine without any special settings.
-
Hi t18
It works fine on my machines too. This was something I
ran into on another machine running Debian.
I think the issue is your character set. You need one that
supports line drawing characters. Something like cp1250
or cp1252 I think.
-
Hi Rich,
I've never changed the character set, I've kept the default one.
-
I'm sorry but it's not clear to me how install or enable a specific character set.
Utf8 would be the right candidate but exporting LC_ALL, LANG and LANGUAGE has no effect.
Other distros have commands like locale-gen or update-locale that are missing in TC.
Please provide me with a bit information more, thanks.
-
Hi t18
... Other distros have commands like locale-gen or update-locale that are missing in TC. ...
Maybe getlocale.tcz is what you are looking for?
-
Hi Rich,
yes it's what helped me to select a character set. But I'm still in the dark.
-
Assuming getlocale.sh ran properly and you have mylocale set "onboot", what does the command "locale" give after rebooting?
-
This gives me my correct locale and timezone and keymaps for console for Sweden, this is my bootoptions.
showapps tz=CET-1CEST,M3.5.0,M10.5.0/3 kmap=qwerty/sv-latin1 lang=sv_SE
https://wiki.tinycorelinux.net/doku.php?id=wiki:boot_codes_explained (https://wiki.tinycorelinux.net/doku.php?id=wiki:boot_codes_explained)
And this is how i get Swedish characters in X11.
sudo su
mkdir -p /etc/X11/xorg.conf.d/
echo -e "Section \"InputClass\"" > /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tIdentifier \"keyboard defaults\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tMatchIsKeyboard \"on\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tOption \"XkbModel\" \"pc105\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tOption \"XkbLayout\" \"se\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tOption \"XkbVariant\" \"nodeadkeys\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "\tOption \"XkbOptions\" \"terminate:ctrl_alt_bksp\"" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "EndSection" >> /etc/X11/xorg.conf.d/se_keyboard.conf
echo -e "etc/X11/xorg.conf.d/se_keyboard.conf" >> /opt/.filetool.lst
filetool.sh -b -v
-
Yes, getlocale.sh run properly, mylocale.tcz is onboot and I've set LANG in the /etc/sysconfig/language.
Pease see the attached image.
And it seem that printf is not working:
tc@box:$ printf "\u0054\n"
\u0054
-
Hi t18
... And it seem that printf is not working: ...
It's possible the shell printf can not handle unicode.
Try /usr/bin/printf
Or install coreutils and try /usr/local/bin/printf
-
No way, please se attached image.
-
found this while kicking the weeds but don't know if it holds any clues:
https://lists.nongnu.org/archive/html/screen-users/2024-06/msg00003.html
-
If I use gnome-terminal and choose, for example, dejavu sans as the font then this:
/usr/local/bin/printf "\u20AC\n"
..returns the euro symbol
-
Hi t18
No way, please se attached image.
So the systems built in printf can not handle unicode.
But the coreutils did attempt to print a unicode character.
I think the issue now is the terminal.
Try installing gnome-terminal.tcz.
-
A big improvement, but still not totally fixed (please see).
And the terminal characters are overlapping, can I install something else?
According to this: https://en.wikipedia.org/wiki/Rxvt (https://en.wikipedia.org/wiki/Rxvt) there is a "unicode" version of rxvt called urxvt. I was convinced to be using that one.
-
Changing font fixed it (please see).
Thank you so much you all! :)
-
Last question, please: where are the gnome teminal settings stored?
I'm unable to find them. Many thanks
-
You can figure it out your self with some knowledge how the systemcalls being used in Linux.
You can use strace for example like this.
strace -e openat gnome-terminal 2>&1 | grep -v 'ENOENT' | grep conf
Explanation of that line.
1. Run strace.
2. Just watch the openat systemcall.
3. Run gnome-terminal.
4. Put standard error to standard in because strace puts it output to standard error.
5. Pipe strace output to grep.
6. Grep revers of the 'ENOENT' to get what files being loaded, not the files that get not found.
7. Pipe to grep.
8. Grep for conf like config.
What I can see is that gnome-terminal uses dconf to store it's config in my system you can list the settings like this:
dconf dump /org/gnome/terminal/legacy/profiles:/
-
@ patrikg: thank you so much for your detailed explanation.
I'll have to study a bit. :)