? boost-703792.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.299
diff -u -p -r1.3.2.2.2.5.2.299 boost.module
--- boost.module	28 Jan 2010 17:46:56 -0000	1.3.2.2.2.5.2.299
+++ boost.module	5 Feb 2010 03:25:36 -0000
@@ -3849,6 +3849,21 @@ function boost_backtrace($args = TRUE) {
   return $output;
 }
 
+/**
+ * Get the lenth of a string in bytes
+ *
+ * @param $string
+ *   get string length
+ */
+function boost_strlen($string) {
+  if (function_exists('mb_strlen')) {
+    return mb_strlen($string, '8bit');
+  }
+  else {
+    return strlen($string);
+  }
+}
+
 //////////////////////////////////////////////////////////////////////////////
 // PHP 4.x compatibility
 
@@ -4215,7 +4230,7 @@ function boost_async_opp($output, $wait 
   // Calculate Content Lenght
   if ($length == 0) {
     $output .= "\n";
-    $length = (mb_strlen($output, '8bit')-1);
+    $length = (boost_strlen($output)-1);
   }
   // Prime php for background operations
   $loop = 0;
