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

Re: [PATCH] $LastChangedDate$ encoding

From: Peter Samuelson <peter_at_p12n.org>
Date: 2006-04-23 02:05:27 CEST

[Branko Cibej]
> That's really not correct. Keywords should be expanded in the file's
> internal encoding, not the locale encoding. Since we don't *know* the
> file's encoding, UTF-8 is marginally better than something random,
> IMHO.

Let's take that further, then, and say that keywords should be expanded
in the file's internal _language_, which we also don't know. Should we
always expand them as POSIX (English), then?

Using the user's locale for the date _format_, but not for the date
_encoding_, makes little sense to me.

In my opinion, the keyword expansions are specific to the WC, and as
such, should match the encoding of other things specific to the WC -
like filenames. It should be safe to assume that the user's editors
and pagers and other tools will default to the encoding from the user's
environment - at least, that seems to be safer than assuming that the
user's tools will all treat files as UTF-8.

Received on Sun Apr 23 02:05:56 2006

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.