Garret Wilson <gar...@globalmentor.com> writes: > On 1/23/2012 9:55 AM, Philip Martin wrote: >> I thought you were proposing to write the code? > > I'm fine with that as well. Looks like I would have to add a few lines > to decote UTF-8 (surely such code already exists in the Subversion > codebase somewhere) and change a few if(...){} statements. I should be > able to handle that. I would imagine it will take more effort on my > part to get permission to change the code than actually writing the > code itself.
The function receives a string of bytes, I think it's already in UTF-8. The problem is that while Subversion has functions to validate UTF-8 it doesn't have a system for extracting individual UTF-8 code points. At present it only ever needs to extract the ASCII subset which is trivial. -- uberSVN: Apache Subversion Made Easy http://www.uberSVN.com