[reportlab-users] Re: Damaged pdf file in release mode Compile
Thomas Zehbe
tz at ingenion.de
Thu Apr 27 09:00:28 EDT 2006
Hi Henning,
The problen is solved. Robin Dunn from the wxPython group gave me the right
hint. python2.3 requires the LC_NUMERIC part of the locale set to "C". So
temporarily switching it from the german setting to C and then back leads to
readable reports.
Why this hack isn't necessary in Debug mode remains on the dark side of the
moon ...
Regards
Thomas
Am Mittwoch, 19. April 2006 09:53 schrieb Henning von Bargen:
> > Thomas Zehbe wrote:
> >
> > I mean file streams not the PDF stream objects. If opened as
> > text then we get
> > problems because '\n' becomes '\r\n' so the lengths etc go
> > wrong. If you're just
> > using BaseDoctemplate then the filename only is used and the
> > canvas should open
> > it properly in its save method.
>
> Thomas,
>
> I don't know if this is of any relevance to your problem,
> but somewhere in the mists of my memories I think I once
> read about compiling Python (on another platform, though)
> that compiler optimizations can result in wrong code.
>
> Perhaps you should (as a first effort) disable all optimizations
> in your release build, check if the program is working, and then
> - step by step - enable the differenz optimizer options again.
>
> Just my 0,02 EUR
> Henning
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
--
Dipl.-Ing. Thomas Zehbe
INGENION GmbH
Kuhweide 6
31552 Apelern
Fon: 05043 / 40 57 904
Fax: 05043 / 40 57 907
More information about the reportlab-users
mailing list