Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: Invalid or incomplete multibyte or wide character

fsvs
Discussion topic

Back to topic list

Re: Invalid or incomplete multibyte or wide character

Author pmarek
Full name P.Marek
Date 2007-06-26 12:47:47 PDT
Message Hello Chris!


On Dienstag, 26. Juni 2007 Worley, Chris B wrote:
> I had the "multibyte" error a few times in my commit. The work-around
> is to "fsvs ignore" those files (or delete them).
Yes, but that's really only a work-around. That should Just Work(TM).
Please see my other mail.

> It is strange that
> even when "ignored" the file names show up during "commit".
They shouldn't. Are you sure that you ignored them correctly?

> I also had an error in "fsvs diff" of binary files:
>
> [root@challenger challanger.x86_64]# fsvs diff
> ./roots/2/var/lib/rpm/Packages
> diff -u ./roots/2/var/lib/rp​m/Packages.r2
> ./roots/2/var/lib/rp​m/Packages.local
> Binary files ./roots/2/var/lib/rpm/Packages Rev. 2 (Fri Jun
> 8 09:54:56 2007) and ./roots/2/var/lib/rpm/Packages Local
> version (Wed Jun 13 16:10:50 2007) differ
I hope that the lines are just wrapped because of the mail, and not in the
console output?

> An error occurred: No such file or directory (2)
> in df__do_diff: Child 16391 gave an exit status 2
Well, diff has documented that "... exit status of 0 means no differences were
found, 1 means some differences were found, and 2 means trouble."

I didn't know that binary files mean trouble; I'd diffed some of them
with "-a" very successfully.

Hmmm ... What to do?
I don't like to ignore the error code 2, as that could mean *real* trouble,
too.
The other way would be to check the files ourself for binaryness, which is not
the Right Thing ... as more or less the same check is duplicated in diff, and
we'd possibly had to read the whole files.

I wrote a mail to the GNU diff mailing list
(http://lists.gnu.org​/archive/html/bug-gn​u-utils/2007-06/thre​ads.html), let's
take a look what they say.

Perhaps the easiest way (for now!) is to write a small shell script that
simply contains something like
    #!/bin/sh
    diff "$@"
    exit 0
and give its path via FSVS_DIFF to fsvs. That allows to ignore such errors.


I'll keep track of this issue; would you like to be notified if there's any
news or do you check yourself?


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 3 of 17 | Next message in topic »

Messages

Show all messages in topic

Invalid or incomplete multibyte or wide character "Worley, Chris B" <chris dot b dot worley at intel dot com> "Worley, Chris B" <chris dot b dot worley at intel dot com> 2007-06-25 13:30:16 PDT
     RE: Invalid or incomplete multibyte or wide character "Worley, Chris B" <chris dot b dot worley at intel dot com> "Worley, Chris B" <chris dot b dot worley at intel dot com> 2007-06-26 10:17:49 PDT
         Re: Invalid or incomplete multibyte or wide character pmarek P.Marek 2007-06-26 12:47:47 PDT
             RE: Invalid or incomplete multibyte or wide character "Worley, Chris B" <chris dot b dot worley at intel dot com> "Worley, Chris B" <chris dot b dot worley at intel dot com> 2007-06-26 13:01:19 PDT
                 Re: Invalid or incomplete multibyte or wide character pmarek P.Marek 2007-06-26 13:14:59 PDT
                     RE: Re: Invalid or incomplete multibyte or wide character "Worley, Chris B" <chris dot b dot worley at intel dot com> "Worley, Chris B" <chris dot b dot worley at intel dot com> 2007-06-26 13:24:53 PDT
                         Re: Invalid or incomplete multibyte or wide character pmarek P.Marek 2007-06-26 23:27:30 PDT
     Re: Invalid or incomplete multibyte or wide character pmarek P.Marek 2007-06-26 12:22:44 PDT
         RE: Re: Invalid or incomplete multibyte or wide character "Worley, Chris B" <chris dot b dot worley at intel dot com> "Worley, Chris B" <chris dot b dot worley at intel dot com> 2007-06-26 12:38:25 PDT
             Re: Invalid or incomplete multibyte or wide character pmarek P.Marek 2007-06-26 12:44:35 PDT
             Re: Invalid or incomplete multibyte or wide character pmarek P.Marek 2007-06-26 13:19:33 PDT
                 RE: Re: Invalid or incomplete multibyte or wide character "Worley, Chris B" <chris dot b dot worley at intel dot com> "Worley, Chris B" <chris dot b dot worley at intel dot com> 2007-06-26 13:21:23 PDT
                     Re: Invalid or incomplete multibyte or wide character pmarek P.Marek 2007-06-26 13:23:40 PDT
                         RE: Re: Invalid or incomplete multibyte or wide character "Worley, Chris B" <chris dot b dot worley at intel dot com> "Worley, Chris B" <chris dot b dot worley at intel dot com> 2007-06-26 13:30:41 PDT
                             Re: Invalid or incomplete multibyte or wide character pmarek P.Marek 2007-06-26 23:29:58 PDT
                                 RE: Re: Invalid or incomplete multibyte or wide character "Worley, Chris B" <chris dot b dot worley at intel dot com> "Worley, Chris B" <chris dot b dot worley at intel dot com> 2007-06-27 07:26:31 PDT
                                     Re: Invalid or incomplete multibyte or wide character pmarek P.Marek 2007-06-27 08:20:49 PDT
Messages per page: