| Title | Perforce server Unicode mode detection inadequate |
| Status | closed |
| Priority | essential |
| Assigned user | Nick Barnes |
| Organization | Ravenbrook |
| Description | The 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. |
| Analysis | Look 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 found | customer |
| Evidence | I just know |
| Observed in | 2.4.3 |
| Introduced in | 2.0.0 |
| Created by | Nick Barnes |
| Created on | 2009-04-14 13:10:09 |
| Last modified by | Nick Barnes |
| Last modified on | 2009-04-14 13:27:30 |
| History | 2009-04-14 NB Created. |
| Change | Effect | Date | User | Description |
|---|---|---|---|---|
| 167768 | closed | 2009-04-12 18:07:49 | Nick Barnes | Improve Perforce server Unicode status detection. |