Bug 211499 - sysutils/tmux: some unicode characters not displaying correctly
Summary: sysutils/tmux: some unicode characters not displaying correctly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Mathieu Arnold
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-01 11:21 UTC by Oleh Hushchenkov
Modified: 2016-08-04 13:19 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (mat)


Attachments
Patch from upstream (1.65 KB, patch)
2016-08-01 11:21 UTC, Oleh Hushchenkov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh Hushchenkov 2016-08-01 11:21:50 UTC
Created attachment 173156 [details]
Patch from upstream

Starting from version 2.2 tmux uses system functions to work with Unicode. On FreeBSD, wcwidth() returns -1 on some characters(like ''), so tmux cannot correctly draw this. Step to reproduce - type "echo '\U+E0A1'", you must see '' symbol but in tmux echoed empty line on 11-STABLE. This is a problem with FreeBSD system locale implementation, but upstream have workaround. Patch from upstream attached.
Comment 1 commit-hook freebsd_committer 2016-08-04 13:19:53 UTC
A commit references this bug:

Author: mat
Date: Thu Aug  4 13:19:34 UTC 2016
New revision: 419609
URL: https://svnweb.freebsd.org/changeset/ports/419609

Log:
  Fix some Unicode characters not displaying correctly.

  PR:		211499
  Submitted by:	Oleg Gushchenkov
  Obtained from:	https://github.com/tmux/tmux/commit/65e4c57d3a554940ed5cada6dfeff403ae8d9572
  Sponsored by:	Absolight

Changes:
  head/sysutils/tmux/Makefile
  head/sysutils/tmux/files/patch-utf8.c