Mantis

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0027884RunnerHTML5Public2017-09-21 12:292017-09-25 15:00
ReporterYellowAfterlife 
Assigned ToMike Dailly 
PriorityMediumSeverityC - GeneralReproducibility100%
StatusResolvedResolutionNo Change Required 
PlatformWindowsOSWindows 8OS Version8.1
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 Version1.4.17
2.x Runtime Version2.1.0.144
2.x Runtime Version Verified In
Attached Files? file icon a_bug.yyz [^] (768,497 bytes) 2017-09-21 12:29

- Relationships

-  Notes
(0055605)
ricardocostaza (Updater)
2017-09-21 13:05

It seems the same of: http://bugs.yoyogames.com/view.php?id=26917 [^]
(0055682)
Mike Dailly (Manager)
2017-09-25 15:00

Already fixed


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker