[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Issue tracker cleanup: SVN-807

From: Branko ─îibej <brane_at_apache.org>
Date: Tue, 12 Nov 2019 10:07:15 +0100

On 11.11.2019 17:30, Daniel Shahaf wrote:
> Nathan Hartman wrote on Mon, Nov 11, 2019 at 10:38:31 -0500:
>> If we're not sure, how can this be tested? (i.e., how to create and
>> commit a log message that will cause this to manifest?)
> Well, I'm sure there are better ways, but I just did this:
> .
> % svnadmin create r
> % vim -b r/db/revprops/0/0
> .
> and manually added an svn:log property with a value that's invalid UTF-8 [svn:*
> properties must use UTF-8 with LF line endings]:
> .
> % xxd r/db/revprops/0/0 | vipe
> 00000000: 4b20 380a 7376 6e3a 6461 7465 0a56 2032 K 8.svn:date.V 2
> 00000010: 370a 3230 3139 2d31 312d 3131 5431 363a 7.2019-11-11T16:
> 00000020: 3038 3a30 312e 3334 3437 3434 5a0a 4b20 08:01.344744Z.K
> 00000030: 370a 7376 6e3a 6c6f 670a 5620 330a ffff 7.svn:log.V 3...
> ^^^^
> 00000040: ff0a 454e 440a ..END.
> ^^
> %
>
> You can confirm it's invalid:
> .
> % iconv -f utf8 < r/db/revprops/0/0 > /dev/null
> iconv: illegal input sequence at position 62
> zsh: exit 1 iconv -f utf8 < r/db/revprops/0/0 > /dev/null
>
> 'svn log' gives:
> .
> % svn log file://$PWD/r
> ------------------------------------------------------------------------
> r0 | (no author) | 2019-11-11 16:08:01 +0000 (Mon, 11 Nov 2019) | 1 line
>
> ?\FF?\FF?\FF
> ------------------------------------------------------------------------
> %
>
> So I think we can close it as "Fixed at some point"?

Ah, yes, I added some code to at least print something readable (or
let's say "analyzable") in such cases when I added utf8proc to our code.
I can't think of anything better to do, so we can close that issue as
far as I'm concerned.

-- Brane
Received on 2019-11-12 10:07:21 CET

This is an archived mail posted to the Subversion Dev mailing list.