Show
Ignore:
Timestamp:
08/25/07 22:49:09 (15 months ago)
Author:
krobillard
Message:

UTF-8 strings can now be read.
ur_makeString() now takes UCell argument.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/thune/thread_safe/win32/os.c

    r447 r453  
    11/*============================================================================ 
    22    Thune Interpreter 
    3     Copyright (C) 2005-2006  Karl Robillard 
     3    Copyright (C) 2005-2007  Karl Robillard 
    44 
    55    This library is free software; you can redistribute it and/or 
     
    326326                continue; 
    327327 
    328             cell = ur_appendCell( blk, UT_STRING /*UT_FILE*/ ); 
    329             ur_setSeries( cell, ur_makeString(fileinfo.name, -1), 0 ); 
     328            // Mark cell as unset in case GC is called by ur_makeString. 
     329            cell = ur_appendCell( blk, UT_UNSET ); 
     330            ur_makeString( cell, fileinfo.name, -1 ); 
    330331        } 
    331332        while( _findnext( handle, &fileinfo ) != -1 );