View Issue Details

IDProjectCategoryView StatusLast Update
0027884RunnerHTML5Public2018-02-05 16:40
ReporterYellowAfterlifeAssigned ToMike Dailly 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionNo Change Required 
PlatformWindowsOSWindows 8OS Version8.1
Product Version 
Target VersionFixed in Version 
Summary0027884: HTML5: file_text_read_string skips over \r\n
DescriptionAt some point for some reason file_text_read_string have been modified to skip over \r and \n characters at the end of the line. This causes it to fulfill both it's normal purpose and that of file_text_readln, as result causing normal code to only read every second line of the file.

Code:

var f = file_text_open_write("gms2.txt");
for (var i = 1; i <= 5; i++) {
    file_text_write_string(f, "Line " + string(i));
    file_text_writeln(f);
}
file_text_close(f);
//
var f = file_text_open_read("gms2.txt");
while (!file_text_eof(f)) {
    show_debug_message(file_text_read_string(f));
    file_text_readln(f);
}
file_text_close(f);


Windows output:

Line 1
Line 2
Line 3
Line 4
Line 5


HTML5 output:

Line 1
Line 3
Line 5
1.4 Found In1.4.17
2.x Runtime Found In2.1.0.144
2.x Runtime Verified In

Activities

YellowAfterlife

2017-09-21 12:29

Developer  

a_bug.yyz (768,497 bytes)

ricardocostaza

2017-09-21 13:05

Updater   ~0055605

It seems the same of: http://bugs.yoyogames.com/view.php?id=26917

Mike Dailly

2017-09-25 15:00

Manager   ~0055682

Already fixed