xoa, xoa-updater ignore LC variables
-
Hello.
Seems that xoa and xoa-updater commands ignore LC variables.With (probably a default one) UTF8 set I got unreadable (UTF8?) characters. This is already expected ;-(
xoa:~$ export LC=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 xoa:~$ xoa:~$ xoa check â Node version â xo-server config syntax â Disk space for /var â Disk space for / â XOA version â Native SMB support â Appliance registration â npm version â Internet connectivity xoa:~$ xoa:~$ xoa-updater stable channel selected. â š All up to dateSimilar unreadable stuff with systemctl, not a surprise:
xoa:~$ systemctl status xoa-updater.service â xoa-updater.service - XOA Updater Loaded: loaded (/etc/systemd/system/xoa-updater.service; enabled; vendor pres Active: active (running) since Fri 2019-05-31 03:24:14 CEST; 14h ago Main PID: 489 (node) Tasks: 10 (limit: 19660) CGroup: /system.slice/xoa-updater.service ââ489 node /usr/local/bin/xoa-updater-startNow I set clean classical variables:
xoa:~$ export LC=C LC_CTYPE=C LC_ALL=CSystemctl behaves properly, that is it uses
*notâand`-notââ:xoa:~$ systemctl status xoa-updater.service * xoa-updater.service - XOA Updater Loaded: loaded (/etc/systemd/system/xoa-updater.service; enabled; vendor pres Active: active (running) since Fri 2019-05-31 03:24:14 CEST; 14h ago Main PID: 489 (node) Tasks: 10 (limit: 19660) CGroup: /system.slice/xoa-updater.service `-489 node /usr/local/bin/xoa-updater-startBut xoa and xoa-updater - not!
xoa:~$ xoa check â Node version â xo-server config syntax â Disk space for /var â Disk space for / â XOA version â Appliance registration â Native SMB support â npm version â Internet connectivity xoa:~$ xoa:~$ xoa-updater stable channel selected. â š All up to dateThat is, still unreadable stuff.
XOA is stable channel, up-to-date.
Could it be corrected? Thanks!
-
Pinging @julien-f
-
Indeed, this is not supported.
Why do need this?
It should work correctly in an XOA. -
@julien-f said in xoa, xoa-updater ignore LC variables:
Indeed, this is not supported.
Why do need this?
To have readable characters

-
You should have readable characters by default…
- What OS and terminal emulator are you using?
- What is your local locale?
-
@julien-f I have a few "hops" (systems that I must log into) on the way to the destination.
AFAIK, software should obey LC to enable proper displaying in similar situations, among others

-
I think it's pretty standard in C (and well supported), but I've never seen any Node CLIs handling this.
Of course, with some effort, we could fix this but, as it it's a very minor issue and you're the only one to have reported, it's very low priority for us.
If/when this library support this, we'll be happy to fix it.
-
@julien-f said in xoa, xoa-updater ignore LC variables:
I think it's pretty standard in C (and well supported), but I've never seen any Node CLIs handling this.
Though this locale is called C, it's not limited to C language.
"C" locale is an alias to POSIX locale.https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap07.html
7.2 POSIX Locale Conforming systems shall provide a POSIX locale, also known as the C locale -
Yes, I know this is not exclusive to C, but there are some facilities to handle this, that are, as far as I know, not available in Node.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login