bug 153, 1066: Convert properties of SMJS bookmark to/from UTF-8.
commit97d72d15a0dbde3e8c8c51eb139f270874e37fda
authorKalle Olavi Niemitalo <kon@iki.fi>
Sun, 19 Oct 2008 22:09:45 +0000 (20 01:09 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sun, 8 Feb 2009 16:26:18 +0000 (8 18:26 +0200)
tree782aaea857eaa1856a605906765b4c0481cf059e
parent03b112796d176a2f1a3a718ebd7480a3f5eebe65
bug 153, 1066: Convert properties of SMJS bookmark to/from UTF-8.

SpiderMonkey uses UTF-16 and the strings in struct bookmark are in
UTF-8.  Previously, the conversions behaved as if the strings had been
in ISO-8859-1.

SpiderMonkey also supports JS_SetCStringsAreUTF8(), which would make
the existing functions convert between UTF-16 and UTF-8, but that
effect is global so I dare not enable it yet.  Besides, I don't know
if that function works in all the SpiderMonkey versions that ELinks
claims to work with.
src/bookmarks/bookmarks.c
src/scripting/smjs/bookmarks.c
src/scripting/smjs/core.c
src/scripting/smjs/core.h