humphd / humphd/browser-vm

How to enable Unicode?

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
202
Forks
51
PR merge metrics
No merged PRs in 30d

Description

Hello,

Thanks for this project, it's really useful. I'm using it for a little fortune demo over at

Do you know how to support Unicode characters in the terminal? Right now when the terminal shows Unicode characters, they are very garbled. One way to test is by typing this, which will get a Euro symbol if Unicode is being displayed properly: `echo -e '\xe2\x82\xac' `. When I enter that into the terminal on my Mac, I get a Euro symbol as expected. When I enter it into the terminal at , it comes out garbled.

I've tried building this myself with your Dockerfile and it comes out garbled in my build as well. I've tried to make a few changes too:

* Added the `locales` package via apt to your Dockerfile, and ran `sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen; locale-gen;`
* Added `BR2_TOOLCHAIN_BUILDROOT_LOCALE=y` and `BR2_ENABLE_LOCALE_WHITELIST="C en_US en_US.UTF-8"` to the buildroot config
* Created a custom busybox configuration with `make busybox-menuconfig` and setting `CONFIG_UNICODE_SUPPORT=y`, `CONFIG_FEATURE_CHECK_UNICODE_IN_ENV=y`, `CONFIG_UNICODE_COMBINING_WCHARS=y`, `CONFIG_UNICODE_WIDE_WCHARS=y`, `CONFIG_UNICODE_BIDI_SUPPORT=y`, `CONFIG_UNICODE_NEUTRAL_TABLE=y`, `CONFIG_UNICODE_PRESERVE_BROKEN=y`.

However, it still gives wrong output for Unicode symbols.

Do you know how to enable Unicode properly? Any help appreciated

For the record, here's what the incorrect output looks like in my image via the serial port (using xterm.js copied from v86). I get something similar over the video console, and on your demo at .

Screen Shot 2021-10-25 at 15 00 08
.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.