Changeset 20806 for lang/cplusplus

Show
Ignore:
Timestamp:
10/05/08 18:30:37 (2 months ago)
Author:
tokuhirom
Message:

fixed utf8 bug.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/ext/fs/file.cc

    r20792 r20806  
    139139    EXTERNAL_FILE(); 
    140140    ARG_str(str, 0); 
    141     size_t wrote = fwrite(*str, sizeof(char), args[0]->ToString()->Length(), fh); 
     141    size_t wrote = fwrite(*str, sizeof(char), str.length(), fh); 
    142142    return Int32::New(wrote); 
    143143END