Commit a046229
committed
Fix review comments for PR microsoft#628
- Fix nil encoder panic in errorCommand when using UTF-8 codepage
- Improve error handling with proper file close on encoding error
- Remove dead code (unused 'err' variable) in format.go
- Add missing -R flag test in TestValidCommandLineToArgsConversion1 parent 448871d commit a046229
3 files changed
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
142 | 149 | | |
143 | 150 | | |
144 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
374 | 376 | | |
375 | 377 | | |
376 | | - | |
377 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
378 | 385 | | |
379 | 386 | | |
380 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
570 | | - | |
571 | 570 | | |
572 | 571 | | |
573 | 572 | | |
| |||
582 | 581 | | |
583 | 582 | | |
584 | 583 | | |
585 | | - | |
586 | | - | |
587 | | - | |
588 | 584 | | |
589 | 585 | | |
590 | 586 | | |
| |||
0 commit comments