Date: Sun, 11 Oct 2015 19:10:10 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 203706] sysutils/uniutils: fix hard-coded endian assumption Message-ID: <bug-203706-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=203706 Bug ID: 203706 Summary: sysutils/uniutils: fix hard-coded endian assumption Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: thierry@FreeBSD.org Reporter: z7dr6ut7gs@snkmail.com Flags: maintainer-feedback?(thierry@FreeBSD.org) Assignee: thierry@FreeBSD.org Created attachment 161923 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=161923&action=edit [patch] don't hard code endianness Attached is a patch to detect endianness and use iconv with the right "from" encoding. Otherwise, you get something like the following if you're using the encoding with the wrong endianness: % utf8lookup d6 No LINES variable in environment so unable to determine lines per page. Using default of 24. iconv: (stdin):1:0: cannot convert That's because there's no valid unicode codepoint for 0xd6000000 (the wrong endian represenation of the U+00D6 codepoint). Also while here, change /usr/local replacement from LOCALBASE -> PREFIX (although the replacement is not used in the current version of the port). The utf8lookup patch was sent upstream recently - no response yet. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-203706-13>