@@ -161,7 +161,7 @@ Initialization, Finalization, and Threads
161161 haven't been explicitly destroyed at that point.
162162
163163
164- .. cfunction :: void Py_SetProgramName(char *name)
164+ .. cfunction :: void Py_SetProgramName(wchar_t *name)
165165
166166 .. index ::
167167 single: Py_Initialize()
@@ -170,11 +170,12 @@ Initialization, Finalization, and Threads
170170
171171 This function should be called before :cfunc: `Py_Initialize ` is called for
172172 the first time, if it is called at all. It tells the interpreter the value
173- of the ``argv[0] `` argument to the :cfunc: `main ` function of the program.
173+ of the ``argv[0] `` argument to the :cfunc: `main ` function of the program
174+ (converted to wide characters).
174175 This is used by :cfunc: `Py_GetPath ` and some other functions below to find
175176 the Python run-time libraries relative to the interpreter executable. The
176177 default value is ``'python' ``. The argument should point to a
177- zero-terminated character string in static storage whose contents will not
178+ zero-terminated wide character string in static storage whose contents will not
178179 change for the duration of the program's execution. No code in the Python
179180 interpreter will change the contents of this storage.
180181
@@ -188,7 +189,7 @@ Initialization, Finalization, and Threads
188189 value.
189190
190191
191- .. cfunction :: char * Py_GetPrefix()
192+ .. cfunction :: wchar_t * Py_GetPrefix()
192193
193194 Return the *prefix * for installed platform-independent files. This is derived
194195 through a number of complicated rules from the program name set with
@@ -201,7 +202,7 @@ Initialization, Finalization, and Threads
201202 It is only useful on Unix. See also the next function.
202203
203204
204- .. cfunction :: char * Py_GetExecPrefix()
205+ .. cfunction :: wchar_t * Py_GetExecPrefix()
205206
206207 Return the *exec-prefix * for installed platform-*dependent * files. This is
207208 derived through a number of complicated rules from the program name set with
@@ -236,7 +237,7 @@ Initialization, Finalization, and Threads
236237 platform.
237238
238239
239- .. cfunction :: char * Py_GetProgramFullPath()
240+ .. cfunction :: wchar_t * Py_GetProgramFullPath()
240241
241242 .. index ::
242243 single: Py_SetProgramName()
@@ -249,7 +250,7 @@ Initialization, Finalization, and Threads
249250 to Python code as ``sys.executable ``.
250251
251252
252- .. cfunction :: char * Py_GetPath()
253+ .. cfunction :: wchar_t * Py_GetPath()
253254
254255 .. index ::
255256 triple: module; search; path
@@ -342,7 +343,7 @@ Initialization, Finalization, and Threads
342343 ``sys.version ``.
343344
344345
345- .. cfunction :: void PySys_SetArgv(int argc, char **argv)
346+ .. cfunction :: void PySys_SetArgv(int argc, wchar_t **argv)
346347
347348 .. index ::
348349 single: main()
0 commit comments