rakitzis / rc

rc shell -- independent re-implementation for Unix of the Plan 9 shell (from circa 1992)
Other
257 stars 23 forks source link

Unnecessary behavioural dependence on $LANG #60

Closed CasperVector closed 4 years ago

CasperVector commented 4 years ago

When invoking rc with env -i rc, and we input 🍑, there is no visual feedback, and the character is discarded. When invoking rc with env -i LANG=en_US.UTF-8 rc, and we do the same, the character is correctly handled. The rc executable is statically linked using musl, and strace showed it did not attempt to access locations like /usr/share/locale/.

CasperVector commented 4 years ago

FYI, using editline can save this hassle.

CasperVector commented 4 years ago

Actually, editline does not quite care about Unicode. I was in a hurry; sorry for that. But since this seems better discussed in #49, perhaps it is better to keep this issue closed.