git-p4: avoid decoding more data from perforce
Perforce does not validate or store the encoding of user submitted data
by default (although this can be enabled). In large repositories it is
therefore very likely that some data will not be valid UTF-8.
Historically (with python2) git-p4 did not attempt to decode the data
from the perforce server - it just passed bytes from perforce to git,
preserving whatever was stored in perforce. This seems like a sensible
approach - it avoids any loss of data, and there is no way to determine
the intended encoding for any invalid data from perforce.
This change updates git-p4 to avoid decoding changelist descriptions,
user and time information. The time data is almost certainly valid
unicode, but as they are processed with the user information it is more
convenient for them to be handled as bytes.
Signed-off-by: Andrew Oakley <andrew@adoakley.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>