tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: International characters in source files and SVN commit messages (was: RE:r1525975)
Date Thu, 26 Sep 2013 21:56:14 GMT
Sebb,

On 9/26/13 1:13 PM, sebb wrote:
> On 25 September 2013 17:02, Konstantin Prei├čer <kpreisser@apache.org> wrote:
>> Mark,
>>
>>> -----Original Message-----
>>> From: Mark Thomas [mailto:markt@apache.org]
>>> Sent: Wednesday, September 25, 2013 5:54 PM
>>
>>> I'd say yes. Property files are a 'special' case:
>>> http://stackoverflow.com/questions/4659929/how-to-use-utf-8-in-
>>> resource-properties-with-resourcebundle
>>
>> OK, thank you for the clarification.
>>
>>> It doesn't bother me but I'm only one committer. I think this falls
>>> under the category if someone cares enough about the commit e-mails
>>> using UTF-8 then they need to work with infra to make that happen. I'm
>>> happy with things as they are.
> 
> There is a property that can be used to change the encoding used by
> the SVN mailer, for example:
> 
> svn:mime-type text/xml; charset=utf-8
> 
> Make sure this agrees with the contents and any xml encoding attribute.

The irony of the above is that text/xml implies that the file contains
an XML processing instruction (i.e. <?xml?>) which properly contains ...
a character encoding attribute, making the "charset" attribute of the
mime-type both superfluous and - in some cases - dangerous in cases of
disagreement.

I am -0 for setting mime-type for XML files to something including a
character set because there's no enforcement of that character set
anywhere at all.

-chris


Mime
View raw message