[webkit-help] Haiku port, UString::data returns nothing.

Maxime Simon simon.maxime at gmail.com
Fri Aug 14 08:54:06 PDT 2009


Hi,

I'm currently working on the Haiku port. And I got an issue when loading
webpages containing javascript.

With a backtrace, I found that it was in ScriptController::evaluate(), it
failed
when creating a String from an UString. Here is the output:

ASSERTION FAILED: characters
(WebCore/platform/text/StringImpl.cpp:142
 WebCore::StringImpl::StringImpl(UChar*, unsigned int,
WebCore::StringImpl::AdoptBuffer))

As you can see it failed because the UChar* was empty. But UString::ascii()
returns something correct, UString::size() also. UString::data() returns
nothing.
( What's really strange is that UString::ascii() uses the UString::data()
method! )

So I'm wondering if I forgot to implement some string functions, or if my
unicode
library is broken. ( Even if I don't think so. )

If anyone has had this problem or if someone has experience in UString, help
would be greatly appreciated. :)

Regards,
-- 
Maxime
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-help/attachments/20090814/fd9bda63/attachment.html>


More information about the webkit-help mailing list