use of UTF-8 (was: [RFC/PATCH] commit messages not 8-bit compatible)
From: Greg Stein <gstein_at_lyra.org>
Date: 2002-05-30 01:00:12 CEST
On Wed, May 29, 2002 at 03:30:35PM -0500, Jon Trowbridge wrote:
Untenable.
> ...but if you do this, anyone who wants to write a GUI client that
Exactly.
> If a log message is in some unknown and unknowable charset, I can't
Yup.
Our decision to use UTF-8 for stuff was made a *long* time ago. Here is a
/* Here are the rules for directory entry names, and directory paths:
A directory entry name is a Unicode string encoded in UTF-8, and
We've always considered all properties to be binary. Thus, ra_dav will need
> Requiring utf-8 here might seem onerous, but it is pretty much the only
Right. If the API has a text string, then SVN says that text string is in
While APR doesn't talk about character sets for its API (wrongly, so, IMO),
[ and extend as applicable to other concepts in the API... ]
Cheers,
-- Greg Stein, http://www.lyra.org/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.org the following algorithm will get us a successor for NR, which is likely (though not guaranteed) to be relatively "near" NR. Setup a cursor on NR's node revision id in the `nodes' table; Advance cursor to next row; THIS_NR = Current cursor location; If THIS_NR.NodeId != NR.NodeId: /* unrelated node, no more node revisions of NR */ return FAILURE; If THIS_NR.CopyId == NR.CopyId: && THIS_NR.TxnId is not a pending transaction: /* same node_id, same copy_id, must be different (older!) txn_id */ return SUCCESS, THIS_NR; ELSE: DO: IF THIS_NR.TxnId > NR.TxnId: && THIS_NR.TxnId is not a pending transaction: /* same node_id, older copy_id, older txn_id */ return SUCCESS, THIS_NR; Advance cursor to next row; THIS_NR = Current cursor location; WHILE (THIS_NR.NodeId == NR.NodeId) return FAILURE; However, I realize that adding ordering to those IDs is probably not a popular thought. :-) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Sat Jun 1 14:22:50 2002 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.