tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Setting "svn:mime-type" in non-English .properties (Was: svn commit: r1850330 [1/2] - in /tomcat/trunk/java: ...)
Date Sun, 06 Jan 2019 17:40:45 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Woonsan,

On 1/4/19 05:11, Woonsan Ko wrote:
> I've noticed in the commit messages that some i18n bundle files 
> showing Japanese correctly (e.g, 
> tomcat/trunk/java/org/apache/catalina/authenticator/LocalStrings_ja.pr
operties
>
> 
below) while scrambling it in others (e.g,
> tomcat/trunk/java/javax/el/LocalStrings_ja.properties below).
> 
> The difference comes from whether or not the file was set with svn 
> property, "svn:mime-type", to "text/plain; charset=UTF-8".
> 
> $ svn propget svn:mime-type 
> java/org/apache/catalina/authenticator/LocalStrings_ja.properties 
> text/plain; charset=UTF-8 $ svn propget svn:mime-type
> java/javax/el/LocalStrings_ja.properties svn: warning: W200017:
> Property 'svn:mime-type' not found on 
> 'java/javax/el/LocalStrings_ja.properties'
> 
> Would anyone mind if I set "svn:mime-type" to "text/plain; 
> charset=UTF-8" in all the non-English .properties files in trunk?

- -1

Properties files are, by definition[1], in ISO-8859-1 encoding.
Characters that are not in the ISO-8859-1 character set need to be
Unicode-escaped.

For example, if you want ã you need to use \u00e3

I'm not sure why the files haven't been formatted in this way so far.

- -chris

[1]
https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/P
roperties.html#load(java.io.InputStream)

> ---------- Forwarded message --------- From: <markt@apache.org> 
> Date: Fri, Jan 4, 2019 at 5:57 PM Subject: svn commit: r1850330
> [1/2] - in /tomcat/trunk/java: javax/el/ 
> org/apache/catalina/authenticator/ org/apache/catalina/core/ 
> org/apache/catalina/ha/deploy/ org/apache/catalina/ha/session/ 
> org/apache/catalina/ha/tcp/ org/apache/catalina/loader/
> org/apache... To: <dev@tomcat.apache.org>
> 
> 
> Author: markt Date: Fri Jan  4 08:57:06 2019 New Revision: 1850330
> 
> URL: http://svn.apache.org/viewvc?rev=1850330&view=rev Log: Update
> Japanese translations
> 
> <snip> Modified:
> tomcat/trunk/java/javax/el/LocalStrings_ja.properties URL:
> http://svn.apache.org/viewvc/tomcat/trunk/java/javax/el/LocalStrings_j
a.properties?rev=1850330&r1=1850329&r2=1850330&view=diff
>
> 
========================================================================
======
> --- tomcat/trunk/java/javax/el/LocalStrings_ja.properties
> (original) +++
> tomcat/trunk/java/javax/el/LocalStrings_ja.properties Fri Jan  4 
> 08:57:06 2019 @@ -22,12 +22,17 @@
> elProcessor.defineFunctionInvalidParamet 
> elProcessor.defineFunctionNoMethod=クラス[{1}]㠮public 
> staticメソッド[{0}]㠌見㠤㠋り㠾㠛んã
§ã —㠟。 <snip>
> 
> Modified:
> tomcat/trunk/java/org/apache/catalina/authenticator/LocalStrings_ja.pr
operties
>
> 
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authe
nticator/LocalStrings_ja.properties?rev=1850330&r1=1850329&r2=1850330&vi
ew=diff
> ======================================================================
========
>
> 
- ---
tomcat/trunk/java/org/apache/catalina/authenticator/LocalStrings_ja.prop
erties
> [UTF-8] (original) +++
> tomcat/trunk/java/org/apache/catalina/authenticator/LocalStrings_ja.pr
operties
>
> 
[UTF-8] Fri Jan  4 08:57:06 2019
> @@ -34,7 +34,7 @@ authenticator.unauthorized=提供され�
> 
> basicAuthenticator.invalidCharset=指定できる値は、null、空の文字列またはUTF-8です。

> <snip>
> 
> ---------------------------------------------------------------------
>
> 
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 
> ---------------------------------------------------------------------
>
> 
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
> 
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlwyPZwACgkQHPApP6U8
pFjCfg/6AvB8rYTvkPOD04Na8YeBFsYOwZRnMltBzeHV1HOlFFUqw2B8+BGt0Vtr
9I1lB9YdsaGp5OQTXa2/wQSvcSHZn+tZqkRHThgNlVgssGZ7p65QE8ZAopTlaius
R3aMygH7QvjJvkWpvTcbYqH+OdxG+VS2blTbSNRFp07RSeKjIc5sUZJbNeFp8Zty
NHvYbJzwIettWWwtVehzP2ZtAiZDIgJ3DvYp2MvgIn8l+QMHbWNlPNpw3VSgL8c8
mU/+OSAs0LFQOU+iQw0WY3NFTG/XnFm6pXfLF+G2JN6sNVwWlBD5j81KCjdBe2gL
PYywwDoek8GNKfhucDMfyaqgk4yWd7Yl4VOxY30Bzpf0u3GdBx2T0rg8pdF8EqAl
t9qaFP0ERqfDB6fR63Yj8Qfv3DfvE2WBohJjD5W/7AGOxcItvH3x01ZQ8zRmyqe+
WZxOMF7V8ghkxPAPi3Gvq4RptR+xjeISJv50bNUHz4Z4qbZqfSu2YZFPn22qbfLH
Ky4mZt9NN6TltjkmS616pMgw9WJrKas1T1LUsAIK1X5u+wYSwFXFUHcp8NPtB0lN
r9fVPGE9aIBc0MvZJJHNUQiagzVaNeb0un2L1op3OGWQdz7jFr7aQe7fc4/T40m/
5rT59cS0Ow9pkLV021sT0ckKIFPi3zNgiyNOgM+RcXQjUf0yh8E=
=BHAU
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message