Based on Perl on Windows 7

后端 未结 1 1333
悲&欢浪女
悲&欢浪女 2021-01-12 16:08

I installed Padre perl, perl IDE on windows 7.And every time i run a program, i am getting an error saying,

perl: warning: Setting locale failed.

perl: warn         


        
相关标签:
1条回答
  • 2021-01-12 16:21

    You need to set the LC_ALL and LANG environment variables to C:

    C:\>set LC_ALL=C
    C:\>set LANG=C
    C:\>perl x.pl 
    

    If you want to make this permanent, or work from your IDE, go to Control Panel->System and Security->System->Advanced System Settings, and under the Advanced tab, click Environment Variables. Then, add LC_ALL and LANG to the list. You might need to restart your IDE if you make changes to these variables.

    0 讨论(0)
提交回复
热议问题