@@ -9714,8 +9714,8 @@ If you need to apply extra operations on a command argument
97149714(to fix Windows slashes, normalize paths, etc.)
97159715before writing to the temporary file,
97169716you can set the &cv-TEMPFILEARGESCFUNC; variable to a custom function.
9717- Such a function takes a single string argument and returns
9718- a new string with any modifications applied.
9717+ The function must accept a single string argument and
9718+ and return a new string with any modifications applied.
97199719Example:
97209720</para>
97219721
@@ -9758,10 +9758,39 @@ Note this value is used literally and not expanded by the subst logic.
97589758 </term>
97599759 <listitem><para>
97609760The directory to create the long-lines temporary file in.
9761- If unset, some suitable default should be chosen.
9762- The default tempfile object lets the &Python;
9763- <systemitem>tempfile</systemitem> module choose.
9764- </para>
9761+ If unset, the &Python;
9762+ <systemitem>tempfile</systemitem> module chooses the directory
9763+ based on the <envar>TMPDIR</envar>,
9764+ <envar>TEMP</envar>
9765+ or <envar>TMP</envar> environment variables.
9766+ If the default path causes processing errors,
9767+ set &cv-TEMPFILEDIR; to a safer alternative.
9768+ For example, on Windows,
9769+ the default temporary file path contains the username.
9770+ If the username contains non-7-bit-ASCII characters,
9771+ there may decoding errors opening the path to the temporary file.
9772+ See also &cv-link-TEMPFILEENCODING;.
9773+ </para>
9774+ </listitem>
9775+ </varlistentry>
9776+ <varlistentry id="cv-TEMPFILEENCODING">
9777+ <term>
9778+ <envar>TEMPFILEENCODING</envar>
9779+ </term>
9780+ <listitem><para>
9781+ By default, the long-lines temporary file (aka "response file") created by the
9782+ &cv-link-TEMPFILE; function will be encoded in the &Python;
9783+ default encoding, UTF-8.
9784+ If the external command which reads the response file
9785+ encounters decoding errors
9786+ (usually, if that command depends on Windows legacy code pages,
9787+ and a pathname in the response file
9788+ or the response file path itself cannot
9789+ be represented in the 7-bit ASCII characer set),
9790+ set this variable to the appropriate codec.
9791+ See also &cv-link-TEMPFILEDIR;.
9792+ </para>
9793+ <para><emphasis>New in version NEXT_RELEASE</emphasis></para>
97659794</listitem>
97669795 </varlistentry>
97679796 <varlistentry id="cv-TEMPFILEPREFIX">
0 commit comments