@@ -627,8 +627,7 @@ decode_locale_impl(const char* arg, wchar_t **wstr, size_t *wlen,
627627{
628628 if (current_locale ) {
629629#ifdef _Py_FORCE_UTF8_LOCALE
630- return _Py_DecodeUTF8 (arg , strlen (arg ), wstr , wlen ,
631- errors );
630+ return _Py_DecodeUTF8 (arg , strlen (arg ), wstr , wlen , errors );
632631#else
633632 return decode_current_locale (arg , wstr , wlen , errors );
634633#endif
@@ -690,7 +689,7 @@ decode_locale_impl(const char* arg, wchar_t **wstr, size_t *wlen,
690689// arg and wstr must not be NULL.
691690int
692691_Py_DecodeLocale (const char * arg , wchar_t * * wstr , size_t * wlen ,
693- int current_locale , _Py_error_handler errors )
692+ int current_locale , _Py_error_handler errors )
694693{
695694 assert (arg != NULL );
696695 assert (wstr != NULL );
@@ -751,7 +750,7 @@ Py_DecodeLocale(const char* arg, size_t *wlen)
751750{
752751 wchar_t * wstr ;
753752 int res = _Py_DecodeLocale (arg , & wstr , wlen , 0 ,
754- _Py_ERROR_SURROGATEESCAPE );
753+ _Py_ERROR_SURROGATEESCAPE );
755754 if (res != 0 ) {
756755 assert (res == _Py_CODEC_MEMORY_ERROR || res == _Py_CODEC_DECODE_ERROR );
757756 if (wlen != NULL ) {
@@ -901,7 +900,7 @@ encode_locale_inner(const wchar_t *text, char **str, size_t *output_length,
901900 if (current_locale ) {
902901#ifdef _Py_FORCE_UTF8_LOCALE
903902 return _Py_EncodeUTF8 (text , str , output_length ,
904- error_pos , raw_malloc , errors );
903+ error_pos , raw_malloc , errors );
905904#else
906905 return encode_current_locale (text , str , output_length ,
907906 error_pos , raw_malloc , errors );
@@ -910,16 +909,15 @@ encode_locale_inner(const wchar_t *text, char **str, size_t *output_length,
910909
911910#ifdef _Py_FORCE_UTF8_FS_ENCODING
912911 return _Py_EncodeUTF8 (text , str , output_length ,
913- error_pos ,
914- raw_malloc , errors );
912+ error_pos , raw_malloc , errors );
915913#else
916914 int use_utf8 = (_PyRuntime .preconfig .utf8_mode >= 1 );
917915#ifdef MS_WINDOWS
918916 use_utf8 |= (_PyRuntime .preconfig .legacy_windows_fs_encoding == 0 );
919917#endif
920918 if (use_utf8 ) {
921919 return _Py_EncodeUTF8 (text , str , output_length ,
922- error_pos , raw_malloc , errors );
920+ error_pos , raw_malloc , errors );
923921 }
924922
925923#ifdef USE_FORCE_ASCII
@@ -1044,8 +1042,8 @@ _Py_EncodeLocaleRaw(const wchar_t *text, size_t *error_pos)
10441042
10451043int
10461044_Py_EncodeLocale (const wchar_t * text , char * * str , size_t * output_length ,
1047- size_t * error_pos , int current_locale ,
1048- _Py_error_handler errors )
1045+ size_t * error_pos , int current_locale ,
1046+ _Py_error_handler errors )
10491047{
10501048 return encode_locale_impl (text , str , output_length ,
10511049 error_pos , 1 , current_locale , errors );
0 commit comments