patch-vfs_extfs_iso9660_in 951 B

12345678910111213141516171819202122232425262728293031
  1. $Id$
  2. $MirOS: ports/misc/mc/patches/patch-vfs_extfs_iso9660_in,v 1.1 2006/09/28 20:39:05 tg Exp $
  3. This does limit names to the C locale, but skips error messages.
  4. --- mc-4.6.1.orig/vfs/extfs/iso9660.in 2004-10-29 09:14:38.000000000 +0000
  5. +++ mc-4.6.1/vfs/extfs/iso9660.in 2007-03-20 13:32:10.000000000 +0000
  6. @@ -9,15 +9,7 @@
  7. # tested to comply with isoinfo 2.0's output
  8. test_iso () {
  9. - CHARSET=`echo "$save_ctype" | sed -n -e 's/.*\.\(.*\)"$/\1/p' | tr '[A-Z]' '[a-z]'`
  10. - if test -n "$CHARSET"; then
  11. - isoinfo -j $CHARSET 2>&1 | grep "Unknown charset" >/dev/null && CHARSET=
  12. - fi
  13. - if test -n "$CHARSET"; then
  14. - JOLIET_OPT="-j $CHARSET -J"
  15. - else
  16. JOLIET_OPT="-J"
  17. - fi
  18. ISOINFO="isoinfo -R"
  19. isoinfo -d -i "$1" | grep "NO Joliet" > /dev/null || ISOINFO="$ISOINFO $JOLIET_OPT"
  20. }
  21. @@ -65,7 +57,6 @@ mcisofs_copyout () {
  22. $ISOINFO -i "$1" -x "/$2" > "$3"
  23. }
  24. -save_ctype=`locale | grep LC_CTYPE`
  25. LC_ALL=C
  26. cmd="$1"