P4.Net和P4CHARSET [英] P4.Net and P4CHARSET
问题描述
我用P4.Net连接到我的非单向code服务器,但有些命令我运行失败,:
I'm using P4.Net to connect to my non-unicode server however some commands i run fail with:
"Unicode clients require a unicode enabled server."
我要如何改变P4CHARSET对无在P4.Net?我试过
how do i change the P4CHARSET to none in P4.Net? I've tried
P4Connection p4 = new P4Connection();
p4.Charset = "none"
p4.Connect()
我也试着改变字符集只是p4.Run命令之前:
i've also tried changing the Charset just before the p4.Run command:
p4.Charset = "none"
p4.Run("where", "c:\\some\\random\\dir");
我已经尝试设置的字符集为无,零和。
i've tried setting the Charset to "none", null and "".
如果我试图通过全局选项的p4.Run命令时,它也不起作用。即
if i try passing global options to the p4.Run command it doesn't work either. ie.
p4.Run("-C none where", "c:\\some\\random\\dir");
将失败,并未知命令
fails with "Unknown Command"
有没有人曾与内P4.Net脚本改变P4CHARSET任何成功呢?你怎么办呢?
has anyone had any success with changing the P4CHARSET within a P4.Net script? how do you do it?
推荐答案
你试过从你的注册表设置的摧毁P4CHARSET和P4COMMANDCHARSET?他们应该在HKEY_CURRENT_USER.Software.Perforce.Environment。我已经在之前的情况类似你们那就是我结束了修复它。
Have you tried nuking P4CHARSET and P4COMMANDCHARSET from your registry settings? They should be at HKEY_CURRENT_USER.Software.Perforce.Environment. I've been in a situation similar to yours before and that's how I ended up fixing it.
此外,您使用的P4Win或P4V?我不能完全肯定P4V,但我知道P4Win似乎存储每个连接的字符集信息。也许这可能是与P4.NET干扰不知何故?
Also, are you using P4Win or P4V? I'm not entirely sure about P4V, but I know P4Win seemed to store charset information per connection. Maybe that could be interfering with P4.NET somehow?
更新
在C ++ API被检测到的Uni code字符集,因为P4CHARSET被设置为无。运行 P4设置P4CHARSET =
在命令行中固定的问题的海报。
The C++ API was detecting a Unicode charset because the P4CHARSET was set to none. Running p4 set P4CHARSET=
from the command line fixed the issue for the poster.
这篇关于P4.Net和P4CHARSET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!