Certain unicode characters cannot be displayed. #623

Open
opened 2020-10-21 07:41:26 +02:00 by Bug-Reaper · 3 comments
Bug-Reaper commented 2020-10-21 07:41:26 +02:00 (Migrated from github.com)

Screenshot_2020-10-20_22-25-44

Alacritty - Left.

Cool-Retro-Term - Center.

Cool-Retro-Term Settings - Right.

So even though Alacritty and Cool-Retro-Term are using the same font (nerdfonts sauce-code-pro which contains a ton of glyphs) Cool Retro Term straight up refuses to display some of the of the unicode characters. In fact any attempt to paste them in converts the unicode char to it's octal parts and refuses to display.

Even if I print craft the unicode glyph from raw octal, printf still can't display the glyph which should be supported by the font.

alacritty octal test (sauce code pro - nerdfonts)

alacritty

cool-retro-term octal test (sauce code pro - nerdfonts)

crt4

They're basically just being ommitted entirely. Not sure what's up because I've seen screenshots of people using these fonts to get these characters. Figured I'd share my findings to see if anyone has any insight. Might be good to try some regression here.

![Screenshot_2020-10-20_22-25-44](https://user-images.githubusercontent.com/31227781/96676940-61c4c280-1323-11eb-8e80-d7a96df7d2a2.png) Alacritty - Left. Cool-Retro-Term - Center. Cool-Retro-Term Settings - Right. So even though Alacritty and Cool-Retro-Term are using the same font (nerdfonts sauce-code-pro which contains a ton of glyphs) Cool Retro Term straight up refuses to display some of the of the unicode characters. In fact any attempt to paste them in converts the unicode char to it's octal parts and refuses to display. Even if I print craft the unicode glyph from raw octal, printf still can't display the glyph which should be supported by the font. ## alacritty octal test (sauce code pro - nerdfonts) ![alacritty](https://user-images.githubusercontent.com/31227781/96677534-aa30b000-1324-11eb-9359-b1cceae9f115.gif) ## cool-retro-term octal test (sauce code pro - nerdfonts) ![crt4](https://user-images.githubusercontent.com/31227781/96677777-23300780-1325-11eb-8e83-b154161ca72e.gif) They're basically just being ommitted entirely. Not sure what's up because I've seen screenshots of people using these fonts to get these characters. Figured I'd share my findings to see if anyone has any insight. Might be good to try some regression here.
Bug-Reaper commented 2020-10-23 10:03:43 +02:00 (Migrated from github.com)

Solved 👍
needed to set my locale to UTF-8:
Screenshot_2020-10-23_00-51-16
Screenshot_2020-10-23_01-13-07

This command does it for me:

LC_ALL="en_US.utf8" cool-retro-term

Pro-Tip, you can see what locales you have installed with locale -a.

Should I PR in a note to the documentation, or is this undocumentably stupid?

Solved :+1: needed to set my locale to UTF-8: ![Screenshot_2020-10-23_00-51-16](https://user-images.githubusercontent.com/31227781/96971467-fa954280-14c9-11eb-89ee-c4ae5d3bdbef.png) ![Screenshot_2020-10-23_01-13-07](https://user-images.githubusercontent.com/31227781/96973598-f74f8600-14cc-11eb-923d-c89dbcc8e1a7.png) This command does it for me: ``` LC_ALL="en_US.utf8" cool-retro-term ``` Pro-Tip, you can see what locales you have installed with `locale -a`. Should I PR in a note to the documentation, or is this undocumentably stupid?
rodrigo-ceccato commented 2021-10-19 20:43:19 +02:00 (Migrated from github.com)

IMO this should be documented, as it is hard to track

IMO this should be documented, as it is hard to track
catoni0 commented 2023-12-22 15:06:01 +01:00 (Migrated from github.com)

Solved 👍 needed to set my locale to UTF-8: Screenshot_2020-10-23_00-51-16 Screenshot_2020-10-23_01-13-07

This command does it for me:

LC_ALL="en_US.utf8" cool-retro-term

Pro-Tip, you can see what locales you have installed with locale -a.

Should I PR in a note to the documentation, or is this undocumentably stupid?

This can be added to desktop file:
sudo nano /usr/share/applications/cool-retro-term.desktop

then:

[Desktop Entry]
Comment=Use the command line the old way
Exec=LC_ALL="en_US.utf8" cool-retro-term
GenericName=Terminal emulator
Icon=cool-retro-term
Name=Cool Retro Term
Categories=System;TerminalEmulator;
StartupNotify=true
Terminal=false
Type=Application
Keywords=shell;prompt;command;commandline;


> Solved 👍 needed to set my locale to UTF-8: ![Screenshot_2020-10-23_00-51-16](https://user-images.githubusercontent.com/31227781/96971467-fa954280-14c9-11eb-89ee-c4ae5d3bdbef.png) ![Screenshot_2020-10-23_01-13-07](https://user-images.githubusercontent.com/31227781/96973598-f74f8600-14cc-11eb-923d-c89dbcc8e1a7.png) > > This command does it for me: > > ``` > LC_ALL="en_US.utf8" cool-retro-term > ``` > > Pro-Tip, you can see what locales you have installed with `locale -a`. > > Should I PR in a note to the documentation, or is this undocumentably stupid? This can be added to desktop file: `sudo nano /usr/share/applications/cool-retro-term.desktop ` then: ``` [Desktop Entry] Comment=Use the command line the old way Exec=LC_ALL="en_US.utf8" cool-retro-term GenericName=Terminal emulator Icon=cool-retro-term Name=Cool Retro Term Categories=System;TerminalEmulator; StartupNotify=true Terminal=false Type=Application Keywords=shell;prompt;command;commandline; ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seeseemelk/cool-retro-term#623
No description provided.