llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.97k stars 11.54k forks source link

ARCMT does not handle \r\n correctly #32471

Open llvmbot opened 7 years ago

llvmbot commented 7 years ago
Bugzilla Link 33124
Version trunk
OS Windows NT
Reporter LLVM Bugzilla Contributor

Extended Description

When rewriting, the ranges which include the "end of line" (so \n on unix) do not handle windows line endings (\r\n): the size of considered to be 1. So, on Windows, the result file contains sequences of \r\r\n as line-endings.

This is not visible when running the test-suite from an svn check-out, because the test files are marked as binary. However, with a git repository on windows, this is quite visible.

llvmbot commented 2 years ago

mentioned in issue llvm/llvm-bugzilla-archive#35522