ALT Linux Bugzilla
– Attachment 2579 Details for
Bug 14519
Ошибки импорта/экспорта Sketch в Inkscape
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Патч для skencil
skencil-0.6.17-locale.patch (text/plain), 1.66 KB, created by
ruslandh
on 2008-04-19 23:40:42 MSD
(
hide
)
Description:
Патч для skencil
Filename:
MIME Type:
Creator:
ruslandh
Created:
2008-04-19 23:40:42 MSD
Size:
1.66 KB
patch
obsolete
>diff -uNr skencil-0.6.17/sk2ppm.py skencil-0.6.17-new/sk2ppm.py >--- skencil-0.6.17/sk2ppm.py 2003-11-30 01:28:59 +0300 >+++ skencil-0.6.17-new/sk2ppm.py 2008-04-19 23:21:45 +0400 >@@ -35,7 +35,7 @@ > > """ > >-import sys, os >+import sys, os, locale > > for dir in ('Lib', 'Filter', 'Pax'): > dir = os.path.join(sys.path[0], dir) >@@ -56,7 +56,8 @@ > import Sketch, Sketch.config > Sketch.Issue(None, Sketch.const.INITIALIZE) > #plugins.load_plugin_configuration(config.plugin_path) >- >+ locale.setlocale(locale.LC_NUMERIC, 'C') >+ > use_bbox = 0 > resolution = 72.0 > steps = alpha = None >diff -uNr skencil-0.6.17/sk2ps.py skencil-0.6.17-new/sk2ps.py >--- skencil-0.6.17/sk2ps.py 2003-11-30 01:29:06 +0300 >+++ skencil-0.6.17-new/sk2ps.py 2008-04-19 23:21:33 +0400 >@@ -28,7 +28,7 @@ > # This means that a lot of more or less unnecessary modules are > # loaded... > >-import sys, os >+import sys, os, locale > > from Sketch import load, PostScriptDevice > from Sketch.Lib import util >@@ -87,7 +87,8 @@ > def main(): > import Sketch > Sketch.init_lib() >- >+ locale.setlocale(locale.LC_NUMERIC, 'C') >+ > draw_printable = 1 > draw_visible = 0 > embed_fonts = 0 >diff -uNr skencil-0.6.17/skconvert.py skencil-0.6.17-new/skconvert.py >--- skencil-0.6.17/skconvert.py 2003-11-30 01:29:14 +0300 >+++ skencil-0.6.17-new/skconvert.py 2008-04-19 23:21:09 +0400 >@@ -25,7 +25,7 @@ > by its extension. > """ > >-import sys, os >+import sys, os, locale > > from Sketch import load, plugins > import Sketch >@@ -45,6 +45,7 @@ > > def main(): > Sketch.init_lib() >+ locale.setlocale(locale.LC_NUMERIC, 'C') > if len(sys.argv) != 3: > sys.stderr.write(__doc__) > sys.exit(1)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14519
: 2579