https://bugs.gpodder.org/show_bug.cgi?id=1598

             Bug #: 1598
           Summary: Fix calculating length of podcast names containing
                    utf-8 chars
    Classification: Unclassified
           Product: gPodder
           Version: Git "two" branch (old 2.x)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: feature request
          Priority: low
         Component: Command-line interface
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created attachment 707
  --> https://bugs.gpodder.org/attachment.cgi?id=707
Patch fixing the issue

Currently, gpo incorrectly calculates length of podcast names containing utf-8
characters (i.e., Russian ones), which results in the "[DONE]" label being
closer to the message and not aligned with other "[DONE]" labels. It happens
because len() of message returns number of bytes, not characters.

My patch is attached. It decodes 'str'-typed string into 'unicode'-typed one.
Seems to be working fine with titles containing both English and Russian chars.

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to