Issue 211 - `mtn cat` output adds extra newlines on Windows when redirecting to a file (monotone)
| Newsgroups | gmane.comp.version-control.monotone.devel |
|---|---|
| Message-ID | <5dea3172fa9fdab8e3149aad6115b3c7@localhost> |
Hello,
A new issue has been created:
211 - `mtn cat` output adds extra newlines on Windows when redirecting to a file
Project: monotone
Status: New
Reported by: Richard Hopkins
Labels:
Type:Incorrect Behavior
Priority:Medium
Description:
Steps to reproduce the problem:
-------------------------------
1. Create a test file 'test.txt', UTF-8, Windows newlines (CRLF) with the numbers {1,2,3,4} each on a new line.
2. Add the file and commit it.
3. Execute mtn cat test.txt > test.txt
4. View test.txt again, there will be extra newlines in between each number.
Expected result:
----------------
The file should be exactly the same.
Actual results:
---------------
The file has extra newlines in between each number.
Output of `mtn version --full`:
-------------------------------
monotone 1.0 (base revision: unknown)
Running on : Windows NT/2000/XP/2003 (5.1, build 2600, Service Pack 3) on ia32 (level 15, rev 19458)
C++ compiler : GNU C++ version 4.5.2
C++ standard library: GNU libstdc++ version 20101216
Boost version : 1_46_1
SQLite version : 3.7.5 (compiled against 3.7.5)
Lua version : Lua 5.1
PCRE version : 8.12 2011-01-15 (compiled against 8.12)
Botan version : 1.8.11 (compiled against 1.8.11)
Changes since base revision:
unknown
--
Issue: https://code.monotone.ca/p/monotone/issues/211/