rpmlint/rpmlint-1.5-fix-unicode-name-bug.patch
2013-12-12 13:29:23 -05:00

13 lines
455 B
Diff

--- a/TagsCheck.py
+++ b/TagsCheck.py
@@ -464,6 +464,8 @@
# squeeze whitespace to ease leading context check
checker.set_text(re.sub(r'\s+', ' ', str))
uppername = pkg.name.upper()
+ if use_utf8:
+ uppername = Pkg.to_utf8(uppername).decode('utf-8')
upperparts = uppername.split('-')
if lang.startswith('en'):
ups = [x + "'S" for x in upperparts]