Summary: | [patch] devel/icu: turn on same workaround as for Linux to fix incorrect detection UTF-8 locale in some applications | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Vladimir Druzenko <vvd> | ||||||
Component: | Individual Port(s) | Assignee: | Matthew Rezny <rezny> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Many People | CC: | henry.hu.sh, rezny, tcberner | ||||||
Priority: | --- | Keywords: | patch | ||||||
Version: | Latest | Flags: | tcberner:
maintainer-feedback-
|
||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
Vladimir Druzenko
2017-01-22 15:35:37 UTC
Could you please add the patch as a proper attachment :) I can confirm, that this fixes the issue seen here: https://people.freebsd.org/~tcberner/icu_problem.png of gwenview refusing to open non-ascii-named files. Created attachment 179228 [details]
devel/icu/files/patch-common_putil.cpp
Any input from office@ on this? Created attachment 181127 [details]
convert ASCII to UTF-8 outside C/POSIX locale
It is obvious we should be handling the ASCII case like Linux and OS X. However, I do not think it wise to copy the Linux section wholesale as there may be unintended consequences to changing the handling of Korean and Japanese. Instead, I have taken the approach of make BSD be the same as Darwin. The handling of CP949 was identical but Darwin was already handling the ASCII->UTF-8 and we can just tack onto the #if instead of copying code. I have verified this change corrects the issue observed in qTox.
A commit references this bug: Author: rezny Date: Fri Apr 7 22:06:08 UTC 2017 New revision: 437961 URL: https://svnweb.freebsd.org/changeset/ports/437961 Log: Behave same on BSDs as on Darwin in that UTF-8 shall be used instead of ASCII outside the POSIX 'C' locale and UTF-8 is deafult in case anything should call ucnv_getDefaultName() prior to calling setlocale(). This change fixes problems that occur in multiple Qt5 applications when handling files with names containing non-ASCII characters. PR: 216372 Reported by: vvd@unislabs.com Approved by: bapt (office@), swills (mentor) Differential Revision: https://reviews.freebsd.org/D10128 Changes: head/devel/icu/Makefile head/devel/icu/files/patch-common_putil.cpp |