Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P poezio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 180
    • Issues 180
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 8
    • Merge requests 8
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • poeziopoezio
  • poezio
  • Issues
  • #2142
Closed
Open
Issue created Oct 15, 2012 by Link Mauve@linkmauveMaintainer

Full-width characters are counted incorrectly

For example speak in a MUC with the テスト nick, it will mess with the following characters. Even worse, a long message containing such characters will display only about half of each line, the entire message being uncomprehensible. Some characters with zero-width have the opposite issue, they are counted while they shouldn’t, but it’s much less important.

The cost of counting the right length is a bit higher than just doing len() on the message, but it renders poezio unusable for speakers of languages using full-length characters. If slowdowns with the common ASCII case are very pronounced, an option could be added to revert to the wrong counting method, so that those users won’t be penalized.

  • Changesets:
    • Revision 0bcd4206 by louiz on 2013-06-19T20:18:50Z:
Consider the number of columns of each characters in the poopt module

Some characters take 0 columns, others take 1 or 2 (full-width characters)

fixes #2142
  • Revision cbe00072 by louiz on 2013-06-19T20:19:08Z:
Exposes the wcswidth function in the poopt module

see #2142
  • Revision 0d7fedce by louiz on 2013-06-19T20:19:17Z:
And actually use poopt.wcswidth to properly count the nicks' size

see #2142
Assignee
Assign to
Time tracking