Simon Marlow <[email protected]> writes:

> I can't apply these here:
>
> $ darcs apply ~/sharedmem.patch
> darcs: Cannot apply this patch bundle, since we're missing:
> Thu Nov 10 12:58:32 GMT 2005  simonmar
>   * [project @ 2005-11-10 12:58:32 by simonmar]
>   Some docs for System.Posix, from Bj�rn Bringert
>
> this looks like an encoding issue, since in the history I have:
>
> Thu Nov 10 12:58:32 GMT 2005  simonmar
>   * [project @ 2005-11-10 12:58:32 by simonmar]
>   Some docs for System.Posix, from Bj[_\f6_]rn Bringert
>
> I tried with darcs 2.2.0rc1 and 1.0.9, same result.
>
> Anyone know what's going on here?  (for the darcs-users folks, the repo to
> apply to is http://darcs.haskell.org/packages/unix).
Could be that the bundle got messed up by the mail system? Although thinking of
that now, I guess that'd cause a hash mismatch first...

One way around would be to tag the repository, so the mis-encoded patch info
does not creep into bundles or otherwise. Another would be to use pull instead
of send.

Ok, so I have checked myself, and the bundle hash is only checked *after* the
context is examined, so I suppose it's just a corrupt bundle (and could indeed
come from the mail system, as its mime is text/plain).

So, I have manually rewritten the 3 offending chars:
Bj?rn -> Björn
Sj?rgen -> Sjörgen
Norb?ck -> Norbäck

and afterwards, doing
cat ~/tmp/sharedmem.patch | iconv -f utf-8 -t iso-8859-1 | darcs apply

worked. That confirms the encoding problem, and I'm quite sure the hash is
checked before actually applying the patch, so I didn't introduce any new
corruption.

Anyhow, Don, could you please send the original bundle file gzipped to me, so I
can check if it was darcs that corrupted it, or something en-route?

Yours,
   Petr.

-- 
Peter Rockai | me()mornfall!net | prockai()redhat!com
 http://blog.mornfall.net | http://web.mornfall.net

"In My Egotistical Opinion, most people's C programs should be
 indented six feet downward and covered with dirt."
     -- Blair P. Houghton on the subject of C program indentation
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to