summaryrefslogtreecommitdiff
path: root/package/mc/patches/patch-vfs_extfs_iso9660_in
diff options
context:
space:
mode:
Diffstat (limited to 'package/mc/patches/patch-vfs_extfs_iso9660_in')
-rw-r--r--package/mc/patches/patch-vfs_extfs_iso9660_in31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/mc/patches/patch-vfs_extfs_iso9660_in b/package/mc/patches/patch-vfs_extfs_iso9660_in
new file mode 100644
index 000000000..d515ff0a8
--- /dev/null
+++ b/package/mc/patches/patch-vfs_extfs_iso9660_in
@@ -0,0 +1,31 @@
+$Id$
+$MirOS: ports/misc/mc/patches/patch-vfs_extfs_iso9660_in,v 1.1 2006/09/28 20:39:05 tg Exp $
+
+ This does limit names to the C locale, but skips error messages.
+
+--- mc-4.6.1.orig/vfs/extfs/iso9660.in 2004-10-29 09:14:38.000000000 +0000
++++ mc-4.6.1/vfs/extfs/iso9660.in 2007-03-20 13:32:10.000000000 +0000
+@@ -9,15 +9,7 @@
+ # tested to comply with isoinfo 2.0's output
+
+ test_iso () {
+- CHARSET=`echo "$save_ctype" | sed -n -e 's/.*\.\(.*\)"$/\1/p' | tr '[A-Z]' '[a-z]'`
+- if test -n "$CHARSET"; then
+- isoinfo -j $CHARSET 2>&1 | grep "Unknown charset" >/dev/null && CHARSET=
+- fi
+- if test -n "$CHARSET"; then
+- JOLIET_OPT="-j $CHARSET -J"
+- else
+ JOLIET_OPT="-J"
+- fi
+ ISOINFO="isoinfo -R"
+ isoinfo -d -i "$1" | grep "NO Joliet" > /dev/null || ISOINFO="$ISOINFO $JOLIET_OPT"
+ }
+@@ -65,7 +57,6 @@ mcisofs_copyout () {
+ $ISOINFO -i "$1" -x "/$2" > "$3"
+ }
+
+-save_ctype=`locale | grep LC_CTYPE`
+ LC_ALL=C
+
+ cmd="$1"