FileWriteLine uses wrong line seperator on windows

Description

FileWriteLine() :: Lucee Documentation

Windows uses 13, 10 not 10

Before the java changed, the first line is the contents of the test

[java] [script] [97,10,98,10,99] [java] [script] (1 tests passed in 44 ms) [java] [script] ERRORED [java] [script] [java] [script] Suites/Specs: 1/2 [java] [script] [java] [script] Failures: 1 [java] [script] Errors: 0 [java] [script] Pass: 1 [java] [script] Skipped: 0 [java] [script] [java] [script] [java] [script] testFileWriteLineObject [java] [script] [java] [script] Failed: Expected [13] but received [10] [java] [script] [java] [script] C:\work\lucee6\test\functions\FileWriteLine.cfc:37 [java] [script] C:\work\lucee6\test\_testRunner.cfc:431 [java] [script] C:\work\lucee6\test\run-tests.cfm:234

Environment

None

Attachments

1
  • 09 May 2023, 02:39 pm

Activity

Show:

Pothys - MitrahSoft 9 May 2023 at 14:39

I checked this ticket and now the FileWriteLine.cfc test runs successfully on lucee 6 local build.

Michael Offner 8 May 2023 at 13:28

if the test case passes all is good.

Zac Spitzer 19 December 2022 at 08:37

ColdFusion Server 2021,0,05,330109 uses the correct line endings

[97,13,10,98,13,10,99,13]

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Created 18 December 2022 at 15:16
Updated 8 June 2023 at 08:45
Resolved 12 May 2023 at 07:03

Flag notifications