Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ: Flux Job IDs in F58 format print improperly #61

Open
SteVwonder opened this issue Sep 10, 2020 · 0 comments
Open

FAQ: Flux Job IDs in F58 format print improperly #61

SteVwonder opened this issue Sep 10, 2020 · 0 comments

Comments

@SteVwonder
Copy link
Member

Depending on the system you are running on and the locale settings, the printing of Flux Job IDs in F58 format can result in weird boxes, underscores, mojibake, or complete corruption of the terminal state. For example:

$ flux mini submit hostname
_Kg1PZgns

or

$ flux mini submit hostname
Kg1PZgns

This issue appears on systems with no locale information set (i.e., LC_ALL, LC_CTYPE, and LANG are all unset and the values printed by locale are all implied). When no locale information is set, python 3.7+ automatically coerces the locale to C.UTF-8

The preferred solution is to set LC_ALL to something (either C, POSIX, or *.UTF-8). Try adding the following to your shell profile script (e.g., ~/.profile): export LC_ALL="C.UTF-8". If your terminal does not support unicode, try just export LC_ALL=C. Ultimately anything that isn't empty should work (C will just prevent the use of unicode characters).

In scenarios where you cannot change your locale (i.e., it must be *.UTF-8), but you want the Flux IDs in F58 to be printed with the ascii f, you should set FLUX_F58_FORCE_ASCII=1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant