projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cb83240
)
Fix package-manager script wrongly escaping UTF-8 chars in path names (bnc #571410)
author
Michael Andres
<ma@suse.de>
Wed, 10 Feb 2010 11:39:06 +0000
(12:39 +0100)
committer
Michael Andres
<ma@suse.de>
Wed, 10 Feb 2010 11:39:06 +0000
(12:39 +0100)
tools/package-manager/package-manager
patch
|
blob
|
history
diff --git
a/tools/package-manager/package-manager
b/tools/package-manager/package-manager
index
57a51a9
..
d00f47d
100755
(executable)
--- a/
tools/package-manager/package-manager
+++ b/
tools/package-manager/package-manager
@@
-13,11
+13,16
@@
EOF
}
# quoted concatenation of arguments
+function quote() {
+ # formerly used 'printf %q' breaks UTF-8 strings
+ echo -n "$@" | sed 's/\([]|&;<>()$`\" \t*?#~=%[]\)/\\\1/g'
+}
+
function mkCmd() {
-
printf "%q"
"$1"
+
quote
"$1"
shift
for ARG in "$@"; do
-
printf " %q" "$ARG
"
+
echo -n " $(quote "$ARG")
"
done
}