Your message dated Sat, 14 Apr 2007 09:32:10 -0500 with message-id <[EMAIL PROTECTED]> has caused the Debian Bug report #419232, regarding tob fails to count size (--fullcount) when using UTF-8 charset to be marked as having been forwarded to the upstream software author(s) Stephen van Egmond <[EMAIL PROTECTED]> .
(NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---On 14 April 2007 at 15:52, Fabio Muzzi wrote: | Package: tob | Version: 0.26.cvs.20040226-5 | Severity: normal | Tags: patch | | | If you try to run "tob -fullcount <something>" on a system that has en_US.UTF-8 as locale, you get a lot | of errors from "wc", which is called by tob. | | Errors are like this: | | wc: standard input:38122: Invalid or incomplete multibyte or wide character | | | I have patched tob to call "wc -c" instead of "wc". Nice one!! Thanks for catching and patching this. I will make a new Debian release in a few days -- am about to leave town. Stephen, this will probably make sense upstream too. Any other news there that we could or should roll into a new release? Dirk | This is the patch: | | | --- /sbin/tob.originale 2007-04-14 13:46:28.000000000 +0200 | +++ /sbin/tob 2007-04-14 14:19:55.000000000 +0200 | @@ -473,13 +473,13 @@ | else | sed -e 's.\\\\.\\.g' -e "$SEDNAMESCRIPT" < "$1" > $FILELIST | eval "$BACKUPCMDTOSTDOUT" | | - wc | | - awk '{ if ($3 < 1000) | - printf ("Estimated: %d bytes\n",$3); | - else if ($3 < 1000000) | - printf ("Estimated: %.1f KB\n",$3/1000.0); | + wc -c | | + awk '{ if ($1 < 1000) | + printf ("Estimated: %d bytes\n",$1); | + else if ($1 < 1000000) | + printf ("Estimated: %.1f KB\n",$1/1000.0); | else | - printf ("Estimated: %.1f MB\n",$3/1000000.0); }' \ | + printf ("Estimated: %.1f MB\n",$1/1000000.0); }' \ | || error "backup size estimate failed." | fi | } | | | | | -- System Information: | Debian Release: 4.0 | APT prefers stable | APT policy: (500, 'stable') | Architecture: amd64 (x86_64) | Shell: /bin/sh linked to /bin/bash | Kernel: Linux 2.6.18 | Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) | | Versions of packages tob depends on: | ii afio 2.5-4 archive file manipulation program | ii debianutils 2.17 Miscellaneous utilities specific t | ii perl 5.8.8-7 Larry Wall's Practical Extraction | | tob recommends no packages. | | -- no debconf information | -- Hell, there are no rules here - we're trying to accomplish something. -- Thomas A. Edison
--- End Message ---

