Forum Bugs

Prince Javascript engine does not permit nulls in strings

StoneCypher
This is problematic, as a lot of Javascript libraries use strings to model more complex datatypes and therefore need binary safe string API (even though it's actually being stored under the hood as unicode.)

One gets the message "string.from_rev_char_list: null character in list."

I stumbled across this in trying to replace Math.rand(), which isn't seeded, since Javascript's lack of real integers otherwise causes problems for randomizers.

John Haugeland is http://fullof.bs/

mikeday
Right, this will be fixed in Prince 8.1.
StoneCypher
Thank you :)

John Haugeland is http://fullof.bs/

mikeday
Prince 8.1 is now available for download and supports NUL characters in JavaScript strings, allowing all kinds of wacky and irresponsible string juggling tricks. :D