Vladimir Panteleev
2020-Jan-16 12:11 UTC
[Libguestfs] [PATCH 1/2] Win::Hivex::Regedit: Accept CRLF line endings
--- perl/lib/Win/Hivex/Regedit.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl/lib/Win/Hivex/Regedit.pm b/perl/lib/Win/Hivex/Regedit.pm index 34426f1..2b17036 100644 --- a/perl/lib/Win/Hivex/Regedit.pm +++ b/perl/lib/Win/Hivex/Regedit.pm @@ -144,6 +144,7 @@ sub reg_import # this is fairly common in pasted regedit files. $lineno++; chomp; + s/\r$//; if (s/\\\s*$//) { $_ .= <$fh>; redo unless eof ($fh); -- 2.25.0
Reasonably Related Threads
- [PATCH 2/2] Win::Hivex::Regedit: Ignore comments
- [PATCH 1/1] hivexregedit: add --max-depth option for exports
- Guidelines when to use LF vs CRLF ("\n" vs. "\r\n") on Windows for new lines (line endings)?
- Guidelines when to use LF vs CRLF ("\n" vs. "\r\n") on Windows for new lines (line endings)?
- Problem with WARNING...headers with CRLF line endings