P4DTI issue job002086

TitlePerforce server Unicode mode detection inadequate
Statusclosed
Priorityessential
Assigned userNick Barnes
OrganizationRavenbrook
DescriptionThe P4DTI attempts to discover whether the Perforce server is running in Unicode mode, so that it can invoke the Perforce client appropriately (i.e. with "-C utf8"). This detection is flawed: if running with a P4CHARSET setting (in the environment, registry, or config file), the attempt to contact a Unicode Perforce sever with no -C switch will succeed, and the P4DTI will decide that the server is not in Unicode mode.
AnalysisLook at "p4 -C utf8 counter unicode" first, and/or "p4 -G info" after a certain server changelevel.
Only back off to running without "-C utf8" if the first attempt fails with the Unicode error.
Wouldn't it be nice if one could say "p4 -C none" to force the client into non-Unicode mode even in the presence of a P4CHARSET environment variable? How strange that this is impossible (the other p4config settings can be overridden on the command line).
How foundcustomer
EvidenceI just know
Observed in2.4.3
Introduced in2.0.0
Created byNick Barnes
Created on2009-04-14 13:10:09
Last modified byNick Barnes
Last modified on2009-04-14 13:27:30
History2009-04-14 NB Created.

Fixes

Change Effect Date User Description
167768 closed 2009-04-12 18:07:49 Nick Barnes Improve Perforce server Unicode status detection.