[p4] Detecting case-sensitivity mode?
p4shawn at gmail.com
Sat May 9 09:57:19 PDT 2009
You can find the case sensitivity in the C++ api with
ClientApi::GetProtocol("nocase"). If that returns NULL, you have a
case-sensitive server. You can also get this from the command line client
with this trick:
p4 -vrpc=5 info
The output will contain the following line on a case insensitive server
(entire line will be omitted on a case sensitive server)
RpcRecvBuffer nocase =
On Sat, May 9, 2009 at 12:01 AM, Stephen Vance <steve at vance.com> wrote:
> The only thing I can think of off hand is to place a file of a known
> case (or use an existing one) in each server and see if you can refer to
> it with a different case through 'fstat' or something.
> Matt Janulewicz wrote:
> > I do not run any servers with the -C switch. All our servers are run
> > with default case-sensitivity (we have both Solaris and Windows servers.)
> > However, one of my users is writing a script that he wants to be 'rock
> > solid' and asked if there is a way to detect whether a server is running
> > with the -C switch. He doesn't want to make any assumptions based on the
> > server platform. The rub is that he wants to do it from the client end.
> > Is there a quick/dirty/easy way to do this? I'm stumped, or else not
> > finding the right documentation.
> > Thanks!
> > -Matt
> > _______________________________________________
> > perforce-user mailing list - perforce-user at perforce.com
> > http://maillist.perforce.com/mailman/listinfo/perforce-user
> Stephen Vance
> perforce-user mailing list - perforce-user at perforce.com
More information about the perforce-user