[Koha-bugs] [Bug 32656] Script delete_records_via_leader.pl no longer deletes items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 19 12:45:02 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32656

--- Comment #7 from Kyle M Hall <kyle at bywatersolutions.com> ---
I'll sign it for you. I've been seeing this with git-bz ever since I upgraded
my Mac to Ventura. I think it has to do with copying and pasting web browser
text into vim. It seems like it now preserves non-breaking spaces and other
unicode characters, but git-bz, being written in python2, cannot handle them. I
have no idea how to solve this. Git itself couldn't care less, neither does
perltidy.

(In reply to David Nind from comment #6)
> I'm having difficulty signing this off:
> 
> /usr/bin/git-bz:1908: UnicodeWarning: Unicode equal comparison failed to
> convert both arguments to Unicode - interpreting them as being unequal
>   obsoleted = (initial_description == patch.description)
> Traceback (most recent call last):
>   File "/usr/bin/git-bz", line 2722, in <module>
>     do_attach(*args)
>   File "/usr/bin/git-bz", line 2074, in do_attach
>     attach_commits(bug, commits, edit_comments=global_options.edit)
>   File "/usr/bin/git-bz", line 1988, in attach_commits
>     description, body, obsoletes, statuses, patch_complexities, depends =
> edit_attachment_comment(bug, commit.subject, body)
>   File "/usr/bin/git-bz", line 1940, in edit_attachment_comment
>     lines = edit_template(template.getvalue())
>   File "/usr/lib/python2.7/StringIO.py", line 271, in getvalue
>     self.buf += ''.join(self.buflist)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 3:
> ordinal not in range(128)
> 
> I had this the other day with another bug when testing. It was to do with
> Unicode characters in the bug title:
> 
> [PATCH] =?UTF-8?q?Bug=C2=A032656:=20Script=20delete=5Frecords=5Fv?=
>  =?UTF-8?q?ia=5Fleader.pl=20no=20longer=20deletes=20items?=

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list