Skip to content

[BUG] New clone of repo shows modification to pure2-regex_10_escapes.cpp.execution #1223

Closed
@bluetarpmedia

Description

@bluetarpmedia

Tested on Windows 11 and Ubuntu 22.04:

A new, fresh clone of the cppfront repo shows a change to pure2-regex_10_escapes.cpp.execution.

Repro:

$ git clone https://github.com/hsutter/cppfront.git
$ cd cppfront
$ git status
On branch main
Your branch is up to date with 'origin/main'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   regression-tests/test-results/msvc-2022-c++latest/pure2-regex_10_escapes.cpp.execution

no changes added to commit (use "git add" and/or "git commit -a")

This message also appears in CI regarding the file:

warning: in the working copy of 'regression-tests/test-results/gcc-14-c++2b/pure2-regex_10_escapes.cpp.execution', CRLF will be replaced by LF the next time Git touches it

However, I'm not convinced the problem is with the line endings because other .execution files appear to have CRLF endings.

Instead I'm wondering if there's something in the file itself which is causing a problem. The GitHub preview stops printing the line numbers after line 38:

image

I had a look in Notepad++ and it shows the \f Form Feed, \a Bell and \e Esc characters, so maybe that confuses the GitHub preview.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions