Problem with wxHTML rendering on Ubuntu LTS 10.4

2010-05-04 Thread Johan Vromans
Hi, On Ubuntu LTS 10.4 I experience problems with wxHTML rendering. perl-Wx version 0.96 (as distributed) Wx version 2.8.1 (as distributed) Using Wx::Demo 0.11, the Windows wxHtmlWindow Simple demo shows a window with HTML tags unprocessed: html head titleA simple HTML document/title

Re: Problem with wxHTML rendering on Ubuntu LTS 10.4

2010-05-04 Thread Mark Dootson
Hi, Wx versions 0.95 and 0.96 are 'broken' in this respect, I think. The following 'workaround' placed in code just after 'use Wx' would fix it I and account for PAR::Packager. use Wx; if(($Wx::VERSION =~ /^(0\.95|0\.96)$/) (not exists($ENV{PAR_0}))) { *Wx::load_dll = sub { return if $^O

Re: Problem with wxHTML rendering on Ubuntu LTS 10.4

2010-05-04 Thread Mark Dootson
Post in haste and spot the error straight away ... use Wx; if(($Wx::VERSION =~ /^(0\.95|0\.96)$/) (not exists($ENV{PAR_0}))) { *Wx::load_dll = sub { return if $^O =~ /^darwin/i; goto $Wx::load_fun; }; } On 04/05/2010 12:06, Mark Dootson wrote: use Wx; if(($Wx::VERSION =~

Re: Problem with wxHTML rendering on Ubuntu LTS 10.4

2010-05-04 Thread Johan Vromans
Mark Dootson mark.doot...@znix.com writes: use Wx; if(($Wx::VERSION =~ /^(0\.95|0\.96)$/) (not exists($ENV{PAR_0}))) { *Wx::load_dll = sub { return if $^O =~ /^darwin/i; goto $Wx::load_fun; }; } Thanks for the speedy answer. Unfortunately, it generates some errors:

Re: Problem with wxHTML rendering on Ubuntu LTS 10.4

2010-05-04 Thread Mark Dootson
Hi, $load_fun is in Wx.pm and should contain a reference to Wx::_load_dll Clearly I misunderstood scoping. Perhaps the following will work by just calling Wx::_load_dll directly. use Wx; if(($Wx::VERSION =~ /^(0\.95|0\.96)$/) (not exists($ENV{PAR_0}))) { no warnings; *Wx::load_dll = sub

Re: Problem with wxHTML rendering on Ubuntu LTS 10.4

2010-05-04 Thread Johan Vromans
[Quoting Mark Dootson, on May 4 2010, 15:11, in Re: Problem with wxH] Perhaps the following will work by just calling Wx::_load_dll directly. use Wx; if(($Wx::VERSION =~ /^(0\.95|0\.96)$/) (not exists($ENV{PAR_0}))) { no warnings; *Wx::load_dll = sub { use warnings;

Re: Problem with wxHTML rendering on Ubuntu LTS 10.4

2010-05-04 Thread Mark Dootson
Hi, Wx 0.96 passes all tests - so not fault of Ubuntu folks. The change was introduced in version 0.95, as I recall, in response to a user issue with PAR::Packer. I'm not sure if one could write a test that would tell you if Wx::HtmlWindow is rendering as expected. A pity that this ended up

Re: Problem with wxHTML rendering on Ubuntu LTS 10.4

2010-05-04 Thread Mark Dootson
Hi, IF Padre has a problem with 0.95 / 0.96 on linux - you'd need to check that first - I'm just making a guess. But perhaps there isn't a problem. Come to think of it, if Johan can view the wxDemo example code displayed correctly in an STC window, then there probably isn't an issue with STC.

Re: Problem with wxHTML rendering on Ubuntu LTS 10.4

2010-05-04 Thread Zeno Gantner
Hi, maybe it is a problem: http://padre.perlide.org/trac/ticket/941 My guess is that this ticket has been reported by Johan ... Best, Z. On Tue, May 4, 2010 at 5:18 PM, Mark Dootson mark.doot...@znix.com wrote: Hi, IF Padre has a problem with 0.95 / 0.96 on linux - you'd need to check that

Re: Problem with wxHTML rendering on Ubuntu LTS 10.4

2010-05-04 Thread Mattia Barbon
Mark Dootson wrote: Hi, Wx 0.96 passes all tests - so not fault of Ubuntu folks. The change was introduced in version 0.95, as I recall, in response to a user issue with PAR::Packer. I'm not sure if one could write a test that would tell you if Wx::HtmlWindow is rendering as expected.