Skip to content

C# haxe.Resource line-endings #3989

Closed
Closed
@andyli

Description

@andyli

When using haxe.Resource, the line-endings of a txt file is automatically converted to CRLF on Windows when targeting C#.

Given a text file, "test.txt", with the content test\ntest, compile and run the following:

class Test {
    static function main() {
        trace(haxe.Resource.getString("test.txt").length); //10, but should be 9
    }
}
-cs bin
-main Test
-resource test.txt
-cmd bin\bin\Test.exe

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

platform-csEverything related to c#

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions