[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r12190: Android doesn't support mbst
From: |
rsavoye |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r12190: Android doesn't support mbstowcs, so return the string size instead for that platform. |
Date: |
Wed, 19 May 2010 12:57:13 -0500 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 12190
committer: rsavoye <address@hidden>
branch nick: trunk
timestamp: Wed 2010-05-19 12:57:13 -0500
message:
Android doesn't support mbstowcs, so return the string size instead for that
platform.
modified:
libcore/vm/ASHandlers.cpp
=== modified file 'libcore/vm/ASHandlers.cpp'
--- a/libcore/vm/ASHandlers.cpp 2010-03-14 00:06:32 +0000
+++ b/libcore/vm/ASHandlers.cpp 2010-05-19 17:57:13 +0000
@@ -20,10 +20,10 @@
#ifdef HAVE_CONFIG_H
-#include "gnashconfig.h" // USE_DEBUGGER
+#include "gnashconfig.h"
#endif
-#include "smart_ptr.h" // GNASH_USE_GC
+#include "smart_ptr.h"
#include "log.h"
#include "SWF.h"
#include "rc.h"
@@ -4151,7 +4151,11 @@
}
// It's something else.
+#ifdef _ANDROID
+ length = str.size();
+#else
length = std::mbstowcs(NULL, str.c_str(), 0);
+#endif
if (length == -1)
{
length = str.length();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r12190: Android doesn't support mbstowcs, so return the string size instead for that platform.,
rsavoye <=