darcs

Patch 204 Make issue1739 test skip instead of fail on non-UTF-8 ...

Title Make issue1739 test skip instead of fail on non-UTF-8 ...
Superseder Nosy List darcs-users, kowey, mornfall, tux_rocker
Related Issues
Status accepted Assigned To
Milestone

Created on 2010-04-05.20:01:03 by tux_rocker, last changed 2011-05-10.20:36:51 by darcswatch. Tracked on DarcsWatch.

Files
File name Status Uploaded Type Edit Remove
make-issue1739-test-skip-instead-of-fail-on-non_utf_8-locales.dpatch tux_rocker, 2010-04-05.20:01:03 text/x-darcs-patch
unnamed tux_rocker, 2010-04-05.20:01:03 text/plain
See mailing list archives for discussion on individual patches.
Messages
msg10679 (view) Author: tux_rocker Date: 2010-04-05.20:01:03
1 patch for repository http://darcs.net/:

Mon Apr  5 20:23:39 CEST 2010  Reinier Lamers <tux_rocker@reinier.de>
  * Make issue1739 test skip instead of fail on non-UTF-8 locales
Attachments
msg10682 (view) Author: kowey Date: 2010-04-06.07:50:02
On Mon, Apr 05, 2010 at 20:01:03 +0000, Reinier Lamers wrote:
> Mon Apr  5 20:23:39 CEST 2010  Reinier Lamers <tux_rocker@reinier.de>
>   * Make issue1739 test skip instead of fail on non-UTF-8 locales

Reinier's justification for this patch (non-UTF-8 behaviour already
covered elsewhere) seems to make sense, so I'll go ahead and push this.

Note that for expediency, we've relaxed the policy a little so that
test case patches can be pushed directly (although the review team
member make proactively decide it needs reviewing anyway, for example
if it relaxes a test, as it does here)

http://wiki.darcs.net/Development/PatchReview

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
msg10683 (view) Author: darcswatch Date: 2010-04-06.08:06:14
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-7678d9da461b8a04c64e351ead3082b0baa572c8
msg10688 (view) Author: kowey Date: 2010-04-06.10:08:23
On Tue, Apr 06, 2010 at 08:49:19 +0100, Eric Kow wrote:
> On Mon, Apr 05, 2010 at 20:01:03 +0000, Reinier Lamers wrote:
> > Mon Apr  5 20:23:39 CEST 2010  Reinier Lamers <tux_rocker@reinier.de>
> >   * Make issue1739 test skip instead of fail on non-UTF-8 locales
> 
> Reinier's justification for this patch (non-UTF-8 behaviour already
> covered elsewhere) seems to make sense, so I'll go ahead and push this.

Actually, another approach, instead of disabling the test, might be
to can the message.  Write it offline (outside of the test), save it
to the darcs darcs repo and read it back in during the test.

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
msg10690 (view) Author: mornfall Date: 2010-04-06.13:02:51
Eric Kow <kowey@darcs.net> writes:

> On Tue, Apr 06, 2010 at 08:49:19 +0100, Eric Kow wrote:
>> On Mon, Apr 05, 2010 at 20:01:03 +0000, Reinier Lamers wrote:
>> > Mon Apr  5 20:23:39 CEST 2010  Reinier Lamers <tux_rocker@reinier.de>
>> >   * Make issue1739 test skip instead of fail on non-UTF-8 locales
>> 
>> Reinier's justification for this patch (non-UTF-8 behaviour already
>> covered elsewhere) seems to make sense, so I'll go ahead and push this.
>
> Actually, another approach, instead of disabling the test, might be
> to can the message.  Write it offline (outside of the test), save it
> to the darcs darcs repo and read it back in during the test.
You can't. The echo that is there already is equivalent to what you
propose. The problem is that darcs treats the file as
locale-encoded. This probably makes sense. Specifically, if it contained
invalid utf8, this would create a loophole in our utf8 metadata and we'd
be back to the original problem (just rarer, since it'd only trigger on
--logfile and possibly editing the long comment...).

Yours,
   Petr.
msg14293 (view) Author: darcswatch Date: 2011-05-10.20:36:51
This patch bundle (with 1 patches) was just applied to the repository http://darcs.net/reviewed.
This message was brought to you by DarcsWatch
http://darcswatch.nomeata.de/repo_http:__darcs.net_reviewed.html#bundle-7678d9da461b8a04c64e351ead3082b0baa572c8
History
Date User Action Args
2010-04-05 20:01:03tux_rockercreate
2010-04-05 20:04:19darcswatchsetdarcswatchurl: http://darcswatch.nomeata.de/repo_http:__darcs.net_.html#bundle-7678d9da461b8a04c64e351ead3082b0baa572c8
2010-04-06 07:50:02koweysetnosy: + kowey
messages: + msg10682
2010-04-06 08:06:14darcswatchsetstatus: needs-review -> accepted
messages: + msg10683
2010-04-06 10:08:23koweysetmessages: + msg10688
2010-04-06 13:02:52mornfallsetnosy: + mornfall
messages: + msg10690
2011-05-10 20:36:51darcswatchsetmessages: + msg14293