microsoft / p4vfs

Microsoft Virtual File System for Perforce

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to Set P4VFS's P4CHARSET

gaojun-lin opened this issue · comments

How to Set P4VFS's P4CHARSET

Hi, to achieve that you can make use of P4CONFIG:

  1. p4 set P4CONFIG=p4config.txt in your global environment.
  2. Then for instance if you have a workspace which root is D:\MyP4, you can create a D:\MyP4\p4config.txt text document, inside put a line P4CHARSET=utf8 (or whichever charset you would like to use).
  3. Next time when you are running P4VFS from your workspace directory (D:\MyP4 in the above example), P4VFS will pickup P4 environment variables you set in your p4config.txt.

FYI, you may also define other P4 environment variables such as P4PORT P4USER P4CLIENT in that p4config.txt.

Hope that helps.