Merge lp:~jspashett/bzr/183504_latin_2_ignore_file into lp:bzr
Proposed by
Jason Spashett
Status: | Merged |
---|---|
Approved by: | Martin Pool |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~jspashett/bzr/183504_latin_2_ignore_file |
Merge into: | lp:bzr |
Diff against target: |
72 lines (+40/-2) 2 files modified
bzrlib/ignores.py (+28/-2) bzrlib/tests/test_ignores.py (+12/-0) |
To merge this branch: | bzr merge lp:~jspashett/bzr/183504_latin_2_ignore_file |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pool | Approve | ||
John A Meinel | Approve | ||
Review via email: mp+22345@code.launchpad.net |
This proposal supersedes a proposal from 2009-10-02.
To post a comment you must log in.
Fix for 183504. Invalid utf in .bzrignore causes stack trace.
How:
parse_ignore_file changed in ignores.py so that each line is utf8 decoded individualy after being split on '\n'. Line count is maintained. UnicodeDecodeError is caught and a trace message is output to signal the error with the offending line number. Processing of further lines continues.
The warning output is:
".bzrignore: On Line %d, malformed utf8 character. Ignoring line."