Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jan 2016 11:12:17 +0000 (UTC)
From:      Koop Mast <kwm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r406300 - in head/devel/xdg-utils: . files
Message-ID:  <201601171112.u0HBCH5G062313@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@g')")"
++            file="$(echo "$file" | unvis -h)"
+         fi
+         check_input_file "$file"
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601171112.u0HBCH5G062313>