You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
emscripten sets some default values for environment variables:
// Set default values. Use string keys for Closure Compiler compatibility.
ENV['USER'] = 'root';
ENV['PATH'] = '/';
ENV['PWD'] = '/';
ENV['HOME'] = '/home/emscripten';
ENV['LANG'] = 'en_US.UTF-8';
ENV['_'] = './this.program';
The default values for HOME and LANG are not what I would have expected. For LANG, it seems strange to default to English - I happen to speak English, but I would not expect this is a reasonable default for all users of programs compiled with emscripten - would "C" make more sense? It's a bit more neutral. For HOME, this is a directory that is not very likely to exist. Would "/" make more sense?