Package: skencil
Version: 0.6.17-7
Severity: normal

With attached file (a trivial one, just a rectangle), running sk2ps in my
spanish locale gives an error,

-------------------------------------------------------------------------
$ sk2ps example.sk kk.ps
error in line 6
Traceback (most recent call last):
  File "/usr/lib/skencil/Plugins/Filters/skloader.py", line 469, in Load
    funcname, args, kwargs = parse(line)
SyntaxError: ')' expected
Traceback (most recent call last):
  File "/usr/bin/sk2ps", line 141, in ?
    result = main()
  File "/usr/bin/sk2ps", line 138, in main
    rotate = rotate, embed_fonts = embed_fonts)
  File "/usr/bin/sk2ps", line 39, in sk2ps
    doc = load.load_drawing(filename)
  File "/usr/lib/skencil/Sketch/Base/load.py", line 368, in load_drawing
    return load_drawing_from_file(file, filename)
  File "/usr/lib/skencil/Sketch/Base/load.py", line 343, in
load_drawing_from_file
    doc = loader.Load()
  File "/usr/lib/skencil/Plugins/Filters/skloader.py", line 506, in Load
    raise SketchLoadError('%d:%s' % (num, value))
Sketch.skexceptions.SketchLoadError: 6:')' expected
-------------------------------------------------------------------------

However, everything works well with C locale, both setting LANG or LC_ALL

  $ LANG=C sk2ps example.sk kk.ps

and in particular with LC_NUMERIC set to C,

  $ LC_NUMERIC=C sk2ps example.sk kk.ps

and the bug reappear with other LC_* stuff.

This bug might be related with the fact that in spanish locale decimal
separator is comma instead of dot.



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17
Locale: LANG=es_ES, LC_CTYPE=es_ES (charmap=ISO-8859-1)

Versions of packages skencil depends on:
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  libx11-6                     2:1.0.0-8   X11 client-side library
ii  libxext6                     1:1.0.1-2   X11 miscellaneous extension librar
ii  python                       2.4.3-11    An interactive high-level object-o
ii  python-imaging-tk            1.1.5-11    Python Imaging Library ImageTk Mod
ii  python-support               0.5         automated rebuilding support for p
ii  tcl8.4                       8.4.12-1.1  Tcl (the Tool Command Language) v8
ii  tk8.4                        8.4.12-1    Tk toolkit for Tcl and X11, v8.4 -

skencil recommends no packages.

-- no debconf information

-- 
Agustin
##Sketch 1 2
document()
layout('A4',0)
layer('Capa 1',1,1,0,0,(0,0,0))
lw(1)
r(51.7134,0,0,-34.4756,211.449,638.572)
guidelayer('L\xedneas gu\xeda',1,0,0,1,(0,0,1))
grid((0,0,20,20),0,(0,0,1),'Rejilla')

Reply via email to