Commit b843719
fix: Add CRLF support in patch header filename parsing
Fix the filename parsing from patch headers to properly handle CRLF line
endings. Previously, the code only checked for '\n' as line ending,
which caused incorrect parsing when processing patches with Windows-style
CRLF line endings.
This fixes issues where filenames in patches with CRLF line endings were
not being correctly extracted, particularly affecting Windows-generated
patch files.
Signed-off-by: Liu Chao <chaoliu719@gmail.com>1 parent 27ced74 commit b843719
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1092 | 1092 | | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | | - | |
| 1095 | + | |
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
| |||
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | | - | |
| 1105 | + | |
1106 | 1106 | | |
1107 | 1107 | | |
1108 | | - | |
| 1108 | + | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
| |||
0 commit comments