I found there's a LANG environment variable with value zh_CN in environments (reported by set), but this variable does NOT exists in system-wide/current-user environments.
- After reboot, the
LANGenvironment variable does not exists yet. - After some operations,
LANGwill appear, and it affected environments ofexplorer.exeprocess (use procexp.exe to see environments of explorer.exe), hence, all new created child process will inherit environments ofexplorer.exe. - After edit any environment variables and save,
LANGwill disappear. - Repeat step 2,
LANGdoes not appear anymore.
I can't figure out which operation in step 2 caused LANG appeared, but most likely, it's when right click a file and then menu popuped.
So, I suspect it's some shell extension programs add LANG environtment variable to explorer.exe. In the popup menu, there are the following shell extensions:
- 7-Zip 9.22 beta
- WinRAR 4.00
- gVim 7.3.46
- EditPlus v3.30 (v605)
- Notepad++ 5.9 (UNICODE)
- Git 1.7.4-preview20110204
- TortoiseCVS 1.12.2
- TortoiseSVN 1.16.16
- XnView Shell Extension 3.0.0 (XnView 1.98)
Most of these programs related to LANG environtment variable (GUI language), but which one? Is there a tool to monitor environment variable?