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

Re: [TSVN] decimal symbol and svn

From: Tuan Ngo <tngo_at_cyanide-studio.com>
Date: 2005-03-31 11:10:25 CEST

Sorry for the late answer : I haven't seen the reply.

I have

* Windows XP SP2

* TortoiseSVN 1.1.3, Build 2502, UNICODE
Subversion 1.1.3,
apr 0.9.5
apr-iconv 0.9.5
apr-utils 0.9.5
berkeley db 4.2.52
neon 0.24.7
OpenSSL 0.9.7e 25 Oct 2004
zlib 1.2.2

* I made 2 tests : one directory under svn and one directory without
svn. the directories contain the same xmls. Depending wich directory I
choose I have different results.

* The File/Open in my app does open the UI i.e. a windows dialog file
explorer. This confirms the problem

* FYI I had to write an antibug in my app : I change the locale settings
before reading the xml and change it back afterward

thanx

Tuan Ngo

****

Tuan Ngo wrote:
/> This is a tricky bug /
/> First thing in my country the decimal symbol is "," not "." /
/> I use an application that reads xml files. /
/> There are float attributes that look like this : /x="3.14"/ /
/> When I use File/Open to read an xml and the directory is not under svn, /
/> everything works fine. /
/> But if the directory is under svn, then the application fails to read /
/> float attributes. /
/> In other word after opening an explorer window with a svn sirectory, /
/> /atof("3.14")/ is 3.000 instead of 3.14 but /atof("3,14")/ /
/> is 3.14 /
/> I suspect TortoiseSVN to have changed the locale settings of my
machine. /

Short answer: no, it doesn't.
Long answer:
TSVN doesn't change the locale settings of the OS. It changes them for
its own threads, but only on the UI part, not the shell part. In the
shell part, no locales are changed at all.

So there must be something else wrong with your setup.
Also, you haven't told us anything about what TSVN version you're using,
what OS your running, installed servicepacks, ...
Without that information it is impossible to even guess what's wrong.

Did you try to copy the xml file out of your working copy and try
reading it from there? Maybe your xml file got somehow changed in the
working copy (svn keywords, lineendings changed with svn:eol-style, ...).

Stefan

-- 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Mar 31 11:29:25 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.