Hello,

who has advice for the following problem on a DOS console of a Windows XP SP3 
machine.
"svn cat" doesn't display German umlaut characters (neither does Windows' built 
in type command).
Whereas a "svn cat > b; cat b" (cat command comes from cygwin) displays 
correctly.

That means: "svn cat" is able to write the correct content to file b.
What setting do I have to change, so that "svn cat" (and "type") print 
correctly to the console?


Reproduction script:
--------------------
ver
chcp
svn --version
cat --version

svnadmin create xx
svn co "file:///C:/[...]/xx" yy
cd yy
vi a
svn add a
svn ci -m ""
svn up
svn cat a > b

@rem ok are:
diff -s a b
cat a
cat b

@rem not ok are:
svn cat a
type a
type b


Full console output:
--------------------

C:...>ver

Microsoft Windows XP [Version 5.1.2600]

C:...>chcp
Aktive Codepage: 850.

C:...>svn --version
svn, Version 1.6.13 (r1002816)
   übersetzt Oct  3 2010, 23:19:41

Copyright (C) 2000-2009 CollabNet.
Subversion ist Open-Source-Software, siehe http://subversion.tigris.org/
Dieses Produkt enthält Software, die von CollabNet (http://www.Collab.Net/) 
entwickelt wurde.

Die folgenden ZugriffsModule (ZM) für Projektarchive stehen zur Verfügung:

* ra_neon : Modul zum Zugriff auf ein Projektarchiv über das Protokoll WebDAV 
mittels Neon.
  - behandelt Schema »http«
  - behandelt Schema »https«
* ra_svn : Modul zum Zugriff auf ein Projektarchiv über das 
svn-Netzwerkprotokoll.
  - mit Cyrus-SASL-Authentifizierung
  - behandelt Schema »svn«
* ra_local : Modul zum Zugriff auf ein Projektarchiv auf der lokalen Festplatte
  - behandelt Schema »file«
* ra_serf : Modul zum Zugriff auf ein Projektarchiv über das Protokoll WebDAV 
mittels serf.
  - behandelt Schema »http«
  - behandelt Schema »https«


C:...>cat --version
cat (GNU textutils) 2.0
Written by Torbjorn Granlund and Richard M. Stallman.

Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

C:...>svnadmin create xx

C:...>svn co "file:///C:/[...]/xx" yy
Ausgecheckt, Revision 0.

C:...>cd yy

C:...\yy>vi a

C:...\yy>svn add a
A         a

C:...\yy>svn ci -m ""
Hinzufügen     a
Übertrage Daten .
Revision 1 übertragen.

C:...\yy>svn up
Revision 1.

C:...\yy>svn cat a  1>b

C:...\yy>diff -s a b
Files a and b are identical

C:...\yy>cat a
äöü ÄÖÜ ß §  -- abcd1234

C:...\yy>cat b
äöü ÄÖÜ ß §  -- abcd1234

C:...\yy>svn cat a
õ÷³ -Í_ ¯ º  -- abcd1234

C:...\yy>type a
õ÷³ -Í_ ¯ º  -- abcd1234

C:...\yy>type b
õ÷³ -Í_ ¯ º  -- abcd1234


The error appears at the beginning of the last 3 output lines (the abcd1234 is 
just for control purposes).

Thanks!

Paul.


Reply via email to