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

[TSVN] [Patch] Accept tsvn:projectlanguage in decimal and hex

From: Norbert Unterberg <nepo_at_gmx.net>
Date: 2005-05-31 18:34:07 CEST

This patch allows TortoiseSVN to accept the project language property
tsvn:projectlanguage as a decimal 1033 or a hex number in the form
0x0409, as it is used in the language code list on the MS web site.

Norbert

Index: src/TortoiseProc/ProjectProperties.cpp
===================================================================
--- src/TortoiseProc/ProjectProperties.cpp (revision 3576)
+++ src/TortoiseProc/ProjectProperties.cpp (working copy)
@@ -258,7 +258,8 @@
 #endif
                                 if (!val.IsEmpty())
                                 {
- lProjectLanguage = _ttol(val);
+ LPTSTR strEnd;
+ lProjectLanguage = _tcstol(val, &strEnd, 0);
                                 }
                                 bFoundProjectLanguage = TRUE;
                         }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue May 31 18:35:11 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.