<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "BP-VA incorrectly works with Subversion on Windows"]]></title>
		<link>http://forums.visual-paradigm.com/posts/43.html</link>
		<description><![CDATA[Latest messages posted in the topic "BP-VA incorrectly works with Subversion on Windows"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>BP-VA incorrectly works with Subversion on Windows</title>
				<description><![CDATA[ Hi Lilian and Jick,<br> <br> BP-VA fails to communicate with Subversion if project and/or directory names contain non-ASCII characters.<br> <br> BP-VA expects to receive the output from Subversion encoded in Windows default locale.  But this is wrong assumption. <br> <br> If '--xml' argument is present in the command line, then Subversion returns its output in UTF-8.  Otherwise the  output is encoded in "Windows console output code page" (OEM code page), which is different from Windows default "ANSI code page".<br> <br> I created a small wrapper around svn.exe (or should I call it proxy?). Basically, it calls the "real" svn.exe with arguments received from BP-VA, and re-encodes the results (and errors from stderr) to "ANSI code page" before returning them to BP-VA. With this wrapper all goes OK.<br> <br> Nad<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2966#24300.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2966#24300.html</link>
				<pubDate><![CDATA[Mon, 24 Mar 2008 16:56:54]]></pubDate>
				<author><![CDATA[ Nad]]></author>
			</item>
			<item>
				<title>Re:BP-VA incorrectly works with Subversion on Windows</title>
				<description><![CDATA[ Hi Nad,<br> <br> Thank you for your post. I've forwarded the problem to our engineers for investigation. Once there is any feedback, I'll come back to you.<br> <br> Best regards,<br> Lilian Wong]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2966#24394.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2966#24394.html</link>
				<pubDate><![CDATA[Tue, 25 Mar 2008 18:27:05]]></pubDate>
				<author><![CDATA[ LilianWong]]></author>
			</item>
			<item>
				<title>Re:BP-VA incorrectly works with Subversion on Windows</title>
				<description><![CDATA[ Hi Lilian,<br> <br> Just in case -- I want to report that the latest BP-VA 2.2 patch (Build sp1_20080311w) does NOT solve the problem with Subversion.<br> <br> Here's the text of my wrapper which I use to resolve this problem (in Python):<br>  <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre> 
 import sys
 import os
 from subprocess import Popen, PIPE
 from locale import getdefaultlocale
 from win32console import GetConsoleOutputCP
 
 windows_cp = getdefaultlocale&#40;&#41;&#91;1&#93;                  #==&gt; 'cp1251'
 console_cp = 'cp%d' % GetConsoleOutputCP&#40;&#41;  #==&gt; 'cp866'
 
 sys.argv&#91;0&#93; = 'C:\\Program Files\\Subversion\\bin\\svn.exe'
 
 p = Popen&#40;sys.argv, stdout=PIPE, stderr=PIPE, env=os.environ&#41;
 output, errors = p.communicate&#40;&#41;
 output = output.replace&#40;'\r', ''&#41; # remove extra carriage returns
 
 if output:
     if '--xml' in sys.argv:
         output = output.decode&#40;'utf-8'&#41;.encode&#40;windows_cp&#41;
     else:
         output = output.decode&#40;console_cp&#41;.encode&#40;windows_cp&#41;
     sys.stdout.write&#40;output&#41;
 if errors:
     errors = errors.decode&#40;console_cp&#41;.encode&#40;windows_cp&#41;
     sys.stderr.write&#40;errors&#41;
 
 sys.exit&#40;p.returncode&#41;
 </pre></td>
		</tr>
		</table> <br> <br> HTH,<br> <br> Nad<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2966#24626.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2966#24626.html</link>
				<pubDate><![CDATA[Fri, 28 Mar 2008 16:27:17]]></pubDate>
				<author><![CDATA[ Nad]]></author>
			</item>
			<item>
				<title>Re:BP-VA incorrectly works with Subversion on Windows</title>
				<description><![CDATA[ Hi Nad,<br> <br> Thanks for your post and the details. The patch I sent to you last time contains fixes about generating reports and project publisher (I've mentioned in the reply), not including the fix in working with Subversion yet. I'm sorry if I made any misunderstanding.<br> <br> Our engineers are fixing the Subversion problem at the moment, I'll notify you immediately when it's fix.<br> <br> If you have any inquiries, please feel free to contact me.<br> <br> Best regards,<br> Lilian Wong]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2966#24920.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2966#24920.html</link>
				<pubDate><![CDATA[Mon, 31 Mar 2008 10:23:24]]></pubDate>
				<author><![CDATA[ LilianWong]]></author>
			</item>
			<item>
				<title>Re:BP-VA incorrectly works with Subversion on Windows</title>
				<description><![CDATA[ Hi Nad,<br> <br> I would like to inform you that the problem about BP-VA worked incorrectly in Subversion is fixed in our application. Please download the patch in the following link and see whether it works.<br> <a href="http://files3.visual-paradigm.com/200804/Patch/sp1_20080311zh/Business_Process_Visual_ARCHITECT_Windows_2_2_sp1_20080311zh.exe" target="_blank" rel="nofollow">http://files3.visual-paradigm.com/200804/Patch/sp1_20080311zh/Business_Process_Visual_ARCHITECT_Windows_2_2_sp1_20080311zh.exe</a> <br> (FYI, this patch include the fix of report generation setting problem you posted in <a href="http://forums.visual-paradigm.com/posts/list/2988.html" target="_blank" rel="nofollow">http://forums.visual-paradigm.com/posts/list/2988.html</a> as well)<br> <br> Note: <br> 1. make sure that the regional settings are using your desired formats (please refer to regional_settings.png)<br> 2. also, make sure that the system setting is using your desired language (please refer to advanced_setting.png)<br> 3. if it doesn't work, start up the command prompt, right-click on it heading and select Defaults. Then check the default encoding to make sure it's the desired language (please refer to default_encoding.png)<br> <br> If you have any inquiries, please feel free to contact me again.<br> <br> Best regards,<br> Lilian Wong<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2966#25119.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2966#25119.html</link>
				<pubDate><![CDATA[Wed, 2 Apr 2008 12:44:10]]></pubDate>
				<author><![CDATA[ LilianWong]]></author>
			</item>
			<item>
				<title>Re:BP-VA incorrectly works with Subversion on Windows</title>
				<description><![CDATA[ Hi Lilian,<br> <br> I confirm that your latest patch fixed the problem with Subversion.<br> Thank you very much.<br> <br> Nad<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2966#25125.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2966#25125.html</link>
				<pubDate><![CDATA[Wed, 2 Apr 2008 14:56:10]]></pubDate>
				<author><![CDATA[ Nad]]></author>
			</item>
			<item>
				<title>Re:BP-VA incorrectly works with Subversion on Windows</title>
				<description><![CDATA[ Hi Nad,<br> <br> You are welcome. If there are any inquiries, please feel free to contact me again.<br> <br> Best regards,<br> Lilian Wong]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2966#25162.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2966#25162.html</link>
				<pubDate><![CDATA[Thu, 3 Apr 2008 08:45:34]]></pubDate>
				<author><![CDATA[ LilianWong]]></author>
			</item>
	</channel>
</rss>