Author Topic: 1.8RC5 Inconsistent PJSR behavior between Windows and Linux  (Read 2861 times)

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Try

    js new FITSKeyword("name","T").isBoolean

It returns true under Windows (correct) and false under Fedora...

Maybe it is the undocumented way to check on which OS we are running ?  ;)

Both are fresh re-install of RC5 with latest patches (March 31) and cleaned preferences.

-- bitli

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: 1.8RC5 Inconsistent PJSR behavior between Windows and Linux
« Reply #1 on: 2013 March 31 15:46:41 »
Use this:

j var k = new FITSKeyword( "name", "T" );
j k.isBoolean;


This always produces the expected result (of course). I don't know why the combined expression fails on Linux. Looks like an incorrect compiler optimization; I'll investigate it.

Quote
Maybe it is the undocumented way to check on which OS we are running ?

Nice one :)
Juan Conejero
PixInsight Development Team
http://pixinsight.com/