我正在尝试在 IIS 下运行一些 Perl CGI 脚本。我收到以下消息:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset),
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
我发现只有当我“使用”我们的内部库时才会出现问题,但它确实是一个很大的库(使用许多其他东西),所以我更愿意知道在哪里看。当我从命令行运行相同的脚本时,脚本运行得很好。我尝试将“LANG”设置为“C”,然后将“LC_ALL”设置为“C”,但没有效果。
欢迎任何指点!