svn commit: r406300 - in head/devel/xdg-utils: . files

Koop Mast kwm at FreeBSD.org
Sun Jan 17 11:12:18 UTC 2016


Author: kwm
Date: Sun Jan 17 11:12:17 2016
New Revision: 406300
URL: https://svnweb.freebsd.org/changeset/ports/406300

Log:
  xdg-open falls through to some code for the non-KDE, non-GNOME case that
  relies on the built-in printf to turn things like \x20 into a literal
  space. This was fixed in Debian by using their /usr/bin/printf, which
  does that. Ours doesn't but Jilles pointed me to unvis(1) which can
  decode URIs just fine (yay!).
  
  PR:		195677
  Submitted by:	uqs@

Modified:
  head/devel/xdg-utils/Makefile
  head/devel/xdg-utils/files/patch-scripts_xdg-open

Modified: head/devel/xdg-utils/Makefile
==============================================================================
--- head/devel/xdg-utils/Makefile	Sun Jan 17 10:56:53 2016	(r406299)
+++ head/devel/xdg-utils/Makefile	Sun Jan 17 11:12:17 2016	(r406300)
@@ -4,7 +4,7 @@
 
 PORTNAME=	xdg-utils
 PORTVERSION=	1.0.2.${SNAPDATE}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 #MASTER_SITES=	http://portland.freedesktop.org/download/
 MASTER_SITES=	LOCAL/kwm

Modified: head/devel/xdg-utils/files/patch-scripts_xdg-open
==============================================================================
--- head/devel/xdg-utils/files/patch-scripts_xdg-open	Sun Jan 17 10:56:53 2016	(r406299)
+++ head/devel/xdg-utils/files/patch-scripts_xdg-open	Sun Jan 17 11:12:17 2016	(r406300)
@@ -13,3 +13,12 @@
  manualpage()
  {
  cat << _MANUALPAGE
+@@ -421,7 +427,7 @@
+         # Decode URLs
+         if echo "$file" | grep -q '^file:///'; then
+             file=${file#file://}
+-            file="$(printf "$(echo "$file" | sed -e 's@%\([a-f0-9A-F]\{2\}\)@\\x\1 at g')")"
++            file="$(echo "$file" | unvis -h)"
+         fi
+         check_input_file "$file"
+ 


More information about the svn-ports-head mailing list