yoshiteru.k
Posts: 2
Joined: Mon Jan 04, 2016 9:12 am
Contact: Send private message

Slic3r does not launch. Because of ENCODING_LOCALE problem.

Sat Jun 11, 2016 5:41 am

Hi, I'm japanese.
I had installed 1.7.2 Windows Driver and Software on Win7-pro-64bit-jp.
So Slic3r version is 1.30.0-prusa3d-release_candidate_1_3.

Then I had occurd Slic3r does not launch problem.

c:\Program Files\Prusa3D\Slic3r>perl5.22.1.exe slic3r.pl --DataDir "C:\Users\Public\Documents\Prusa3D\Slic3r settings 175"
The locale codeset (cp932) isn't one that perl can decode, stopped at C:/Program Files/Prusa3D/Slic3r/lib/Encode/Locale.pm line 120.
Compilation failed in require at C:/Program Files/Prusa3D/Slic3r/lib/Slic3r.pm line 70.
BEGIN failed--compilation aborted at C:/Program Files/Prusa3D/Slic3r/lib/Slic3r.pm line 70.
Compilation failed in require at slic3r.pl line 15.
BEGIN failed--compilation aborted at slic3r.pl line 15.


I had fixed Locale.pm as follows. Then Slic3r was launched.

Code: Select all

104,107c104,107
<     $ENCODING_LOCALE ||= $^O eq "MSWin32" ? "cp1252" : "UTF-8";
<     $ENCODING_LOCALE_FS ||= $ENCODING_LOCALE;
<     $ENCODING_CONSOLE_IN ||= $ENCODING_LOCALE;
<     $ENCODING_CONSOLE_OUT ||= $ENCODING_CONSOLE_IN;
---
>     $ENCODING_LOCALE = $^O eq "MSWin32" ? "cp1252" : "UTF-8";
>     $ENCODING_LOCALE_FS = $ENCODING_LOCALE;
>     $ENCODING_CONSOLE_IN = $ENCODING_LOCALE;
>     $ENCODING_CONSOLE_OUT = $ENCODING_CONSOLE_IN;


Is this correct modification?

User avatar
christophe.p
Pro
Pro
Posts: 571
Joined: Sun Feb 14, 2016 4:43 pm
Location: Paris
Contact: Send private message Website

Re: Slic3r does not launch. Because of ENCODING_LOCALE problem.

Sun Jun 12, 2016 7:58 pm

Hi Yoshiteru,

Welcome aboard. it's really impressive how worldwide this community is growing, just amazing.

Regarding the locale issue, I'm not sure there are many people here is having your issue, so it's hard to tell provide any hint here, but since you fixed your issue that way, I would tell that it's the best validation that your modification is working.

Another solution I can imagine is to create a specific user and to apply a US or european local to this user, and to launch Slicer with a run as in a shortcut. A bit unclean way, but avoiding you to modify the locale in the application at every updgrade.
I'm like Jon Snow, I know nothing.

User avatar
josefprusa
Site Admin
Site Admin
Posts: 689
Joined: Sat Apr 25, 2015 11:36 pm
Topics answered: 1
Contact: Send private message

Re: Slic3r does not launch. Because of ENCODING_LOCALE problem.

Sun Jun 12, 2016 8:05 pm

Forwarding this to our dev so we can try fix it :-) Thank you
--------------------------------------------------------------------
Founder and owner / Majitel a zakladatel
josef@prusa3d.com

yoshiteru.k
Posts: 2
Joined: Mon Jan 04, 2016 9:12 am
Contact: Send private message

Re: Slic3r does not launch. Because of ENCODING_LOCALE problem.

Tue Jun 14, 2016 4:09 pm

Hi, christophe and josef.

Thanks to giving me another solution. :D
I hadn't thought about that.
I will see what I can do !

petr.l2
Posts: 1
Joined: Fri Aug 05, 2016 1:39 pm
Contact: Send private message

Re: Slic3r does not launch. Because of ENCODING_LOCALE problem.

Fri Aug 05, 2016 1:42 pm

Hello,
Slic3r-1-3-0-dev-win-5-5.zip fails with similar error on czech Windows7, cp1250 locale (The locale codeset (cp1250) isn't one that perl can decode, stopped at) (Coz je dost divne, cekal bych, ze zrovna ceske windows budou vyzkousene)

Maybe adding Encode::Byte explicitly when packing slic3r may help?

vojtěch.b3
Site Admin
Site Admin
Posts: 462
Joined: Sat May 28, 2016 6:19 am
Contact: Send private message

Re: Slic3r does not launch. Because of ENCODING_LOCALE problem.

Fri Aug 05, 2016 8:26 pm

Did you try the latest Prusa3D build of Slic3r? We regularly train our Czech customers to use our Slic3r build on Czech Windows.

Please get it here:
https://github.com/prusa3d/Slic3r/releases

or use the latest driver package from
http://www.prusa3d.com/drivers/

Vojtech

Return to “Software”

Who is online

Users browsing this forum: No registered users and 2 guests