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

[l10n] problem of output containing multiple character encodings

From: Kobayashi Noritada <nori1_at_dolphin.c.u-tokyo.ac.jp>
Date: 2004-10-02 16:27:18 CEST

Hi all,

A Japanese user reported to the Subversion-jp list that when he created
a non-utf8 file and committed it, '$LastChangedDate$' was substituted
with a utf8 text (The environment variable LANG was 'ja_JP.UTF-8').
A file containing multiple character encodings is undesirable.
Although the string of that utf8 text seems not to originate at Subversion
(and its po files), what character encoding it use in its output is
controversial.

Also, I found some little time ago that outputs of 'svn diff' contain
a problem of the same sort: translated texts in the unified diff headers
were output in the character encoding accommodating to the locale even if
it is not the same as the character encoding of the file.
(In fact, it does not describe correctly when more appropriate:
 output character encoding in the unified diff headers are always use
 utf8 now because of Issue #1997.)
It often become problematic when used with pipe or redirection.

Of course the easiest solution to these problem is not to use characters
other than ASCII in above texts, but I think it is the last resort.
I'll show my ideas:

(1) To perceive the character coding system of each input file and accommodate
    the character encoding of messages in the output to it.
(2) To read a property, such as svn:encoding, of each input file and
    accommodate the character encoding of messages in the output to it.
(3) To use ASCII-only texts in the output messages.

Ideas ranked higher are more preferable, I think.

Are there any other ideas?
And which of these ideas is feasible?

Regards,

# Most of my reports to this list tend to contain a matter related to character
# encoding...

-- 
|:  Noritada KOBAYASHI
|:  Dept. of General Systems Studies,
|:  Graduate School of Arts and Sciences, Univ. of Tokyo
|:  E-mail: nori1@dolphin.c.u-tokyo.ac.jp (preferable)
|:          nori@esa.c.u-tokyo.ac.jp
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 2 16:28:04 2004

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