Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: t18 on May 15, 2025, 03:36:45 AM

Title: Application not showing correctly
Post 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
Title: Re: Application not showing correctly
Post by: Juanito on May 15, 2025, 04:07:42 AM
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
Title: Re: Application not showing correctly
Post by: Rich on May 15, 2025, 09:11:54 AM
Hi t18
I've seen mc (midnight commander) behave like that
on the repo server. I fixed it like this:
Code: [Select]
LC_ALL=C mc
Assuming Wordperfect is called wp, try starting it like this:
Code: [Select]
LC_ALL=C wp
If that works, add this to .ashrc:
Code: [Select]
alias wp='LC_ALL=C wp'
Title: Re: Application not showing correctly
Post by: t18 on May 15, 2025, 10:41:29 AM
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.
Title: Re: Application not showing correctly
Post by: t18 on May 15, 2025, 02:01:50 PM
And Midnight Commander works fine without any special settings.
Title: Re: Application not showing correctly
Post by: Rich on May 15, 2025, 03:52:29 PM
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.
Title: Re: Application not showing correctly
Post by: t18 on May 15, 2025, 04:12:28 PM
Hi Rich,

I've never changed the character set, I've kept the default one.
Title: Re: Application not showing correctly
Post by: t18 on May 18, 2025, 03:34:39 PM
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.
Title: Re: Application not showing correctly
Post by: Rich on May 18, 2025, 07:56:31 PM
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?
Title: Re: Application not showing correctly
Post by: t18 on May 19, 2025, 03:52:38 AM
Hi Rich,

yes it's what helped me to select a character set. But I'm still in the dark.
Title: Re: Application not showing correctly
Post by: Juanito on May 19, 2025, 05:40:11 AM
Assuming getlocale.sh ran properly and you have mylocale set "onboot", what does the command "locale" give after rebooting?
Title: Re: Application not showing correctly
Post by: patrikg on May 19, 2025, 06:23:11 AM
This gives me my correct locale and timezone and keymaps for console for Sweden, this is my bootoptions.
Code: [Select]
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.
Code: [Select]
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
Title: Re: Application not showing correctly
Post by: t18 on May 19, 2025, 06:35:24 AM
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:

Code: [Select]
tc@box:$ printf "\u0054\n"
\u0054
Title: Re: Application not showing correctly
Post by: Rich on May 19, 2025, 09:31:12 AM
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
Title: Re: Application not showing correctly
Post by: t18 on May 19, 2025, 10:30:03 AM
No way, please se attached image.

Title: Re: Application not showing correctly
Post by: gadget42 on May 19, 2025, 12:05:25 PM
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
Title: Re: Application not showing correctly
Post by: Juanito on May 19, 2025, 12:08:59 PM
If I use gnome-terminal and choose, for example, dejavu sans as the font then this:
Code: [Select]
/usr/local/bin/printf "\u20AC\n"
..returns the euro symbol
Title: Re: Application not showing correctly
Post by: Rich on May 19, 2025, 12:37:52 PM
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.
Title: Re: Application not showing correctly
Post by: t18 on May 19, 2025, 01:53:09 PM
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.
Title: Re: Application not showing correctly
Post by: t18 on May 19, 2025, 03:09:44 PM
Changing font fixed it (please see).

Thank you so much you all!  :)
Title: Re: Application not showing correctly
Post by: t18 on May 20, 2025, 05:02:00 AM
Last question, please: where are the gnome teminal settings stored?

I'm unable to find them. Many thanks
Title: Re: Application not showing correctly
Post by: patrikg on May 20, 2025, 05:31:17 AM
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.
Code: [Select]
strace -e openat gnome-terminal 2>&1 | grep -v 'ENOENT' | grep confExplanation 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:
Code: [Select]
dconf dump /org/gnome/terminal/legacy/profiles:/
Title: Re: Application not showing correctly
Post by: t18 on May 20, 2025, 07:56:47 AM
@ patrikg:  thank you so much for your detailed explanation.

I'll have to study a bit. :)