Thread overview | |||||
---|---|---|---|---|---|
|
February 11, 2021 [Issue 5378] File.byLine terminator string | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5378 Răzvan Ștefănescu <rumbu@rumbu.ro> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |rumbu@rumbu.ro Resolution|FIXED |--- --- Comment #8 from Răzvan Ștefănescu <rumbu@rumbu.ro> --- Default behaviour is unexpected, at least on Windows where most files contain lines ended in \r\n. Use of lineSeparator enum for cross platform development does not guarantee that the file you are processing contain only the lineSeparator terminator. If I ask byLine, I expect to obtain a line not something else, not a line ended with another line terminator. What if my file contains some lines ended in \r and other line ended in \r\n? Default behaviour must strip terminators and must consume all known line separators, there is no point to discriminate between them: - 0x0d - 0x0d\0x0a - 0x0a - Unicode categories Zl, Zp. -- |
February 11, 2021 [Issue 5378] File.byLine terminator string | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5378 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|andrei@erdani.com |nobody@puremagic.com -- |
December 17, 2022 [Issue 5378] File.byLine terminator string | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=5378 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 |P3 -- |
Copyright © 1999-2021 by the D Language Foundation