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

Re: Encoding of .subversion config files?

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-03-03 22:06:28 CET

"C. Michael Pilato" <cmpilato@collab.net> writes:

> Peter Lundblad wrote:
>> C. Michael Pilato writes:
>> > Philip Martin wrote:
>> > > Do we have or need a policy for the encoding of the config files in
>> > > .subversion? At present it appears that the global-ignores value
>> > > needs to be in UTF-8 while the diff-cmd value needs to be in the
>> > > native encoding.
>> >
>> > Perhaps we should go UTF-8 throughout -- as /etc/subversion/config
>> > applies to multiple users who might use different native encodings, I
>> > think UTF-8 has a better chance of being transcoded to all of those
>> > other encodings. Are there other compelling reasons for going with
>> > UTF-8 vs. native vs. free-form (with documentation on a per-option basis
>> > as to its expected encoding)?
>> >
>>
>> I'm on the oposite opinion, that we should expect it to be in the
>> native encoding. In general, we are UTF-8 internally and natie
>> encoding externally and I think that's what we should be. People
>> editing their .subversion files will do so in their native
>> encoding. The best would be if the encoding could be specified at the
>> beginning of the file, but I don't know if that's feasable.

Who's native encoding applies to /etc/subversion/config? I think it
has to be UTF8, which means that .subversion/config can only be in the
native encoding if the code supports reading from both encodings.

> Not to complicate things to an already funky issue, but:
> What encoding is used for the mod_authz_svn configuration file? What
> about for the svnserve configuration file? What does the DB_CONFIG file
> use?

httpd doesn't make a setlocale call so it can't really do native-UTF8
conversions other than for trivial conversions. By experiment, I find
that using UTF8 in the mod_authz_svn file appears to work. UTF8 also
appears to work in the svnserve conf/authz file.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 3 22:07:36 2006

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