Only set the LANG variable if the system is not Windows
BUG:391989 (cherry picked from commit dbd65ef7296f9cb1db4f985fa6c3b5d1eb9106ea)