This would be cleaner than my current fix, so I'll try it, thanks.
Sent: Tuesday, July 05, 2016 at 6:12 AM From: "Henrik Johansen" <henrik.s.johansen@veloxit.no> To: "Pharo Development List" <pharo-dev@lists.pharo.org> Subject: Re: [Pharo-dev] XMLWriter does not load in development in Pharo
If the goal is x-platform, the magic incantation that works in both Pharo and Squeak, is Smalltalk os platformName.
Cheers, Henry
On 05 Jul 2016, at 10:41 , Cyril Ferlicot Delbecque <cyril.ferlicot@gmail.com> wrote:
Hi,
There was a commit in XMLWriter using `Smalltalk plateformName asLowercase beginsWith: 'win'` in the initialisation of the writer class. #plateformName does not exist in the Pharo image so it's impossible to load the development version of XMLWriter in Pharo at the moment.
Instead I think it should use `OSPlatform current isWindows`. Or even better: `OSPlatform current lineEnding`. Since I don't know if XMLWriter is a Pharo project or if it's loadable in other Smalltalk I prefer to send a mail instead of changing the code myself.
-- Cyril Ferlicot
165 Avenue Bretagne Lille 59000 France