Am Mittwoch, 2. Oktober 2013, 13:10:20 schrieb Pedro Navarro: > > > - It requires an English version of Perforce (use the P4_OPTIONS > > > variable, documented below to pass the -L switch to change the > > > message > > > language if you installation has a different one). It shouldn't be > > > too > > > > > > hard to change the regular expressions used for parsing to not key on a > > > specific word but on character ranges. I'll look into that if this > > > > becomes > > > > > an issue. > > > > Maybe set P4_OPTIONS automatically to -Lenglish (or whatever) in case it > > is > > not set? > > I tried that originally but had no effect. Also, on the perforce > documentation it says that "Specifies the language to use for error > messages from the Perforce service. In order for this flag to work, your > administrator must have loaded support for non-English messages in the > database", so I didn't feel comfortable adding a flag globably without > knowing it might even trigger an error (like invalid language or something > like that). > > Perforce offers the P4LANGUAGE environment variable which can be used to > configure the client for updates, and we also have the P4_OPTIONS variable, > so I think for now it's a good solution/workaround until we have more > information.
Can you set P4LANGUANGE unconditionally then? Like it is done in FindSubversion.cmake to get proper output. And of course this needs testcases, and a host that has Perforce installed and drives those tests. ;) Eike
signature.asc
Description: This is a digitally signed message part.
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers