[vlc-devel] [vlc-commits] contribs: gpgerror: Don't use GetConsoleOutputCP on WinRT

Steve Lhomme robux4 at gmail.com
Sun Sep 4 14:06:51 CEST 2016


Shouldn't there be a GetConsoleOutputCP() in winstorecompat instead ?
It would return CP_UTF8.

On Thu, Aug 25, 2016 at 4:08 PM, Hugo Beauzée-Luyssen <git at videolan.org> wrote:
> vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Aug 25 16:00:17 2016 +0200| [72438032d6d6fbe934a09ce217c7ac6692c63841] | committer: Hugo Beauzée-Luyssen
>
> contribs: gpgerror: Don't use GetConsoleOutputCP on WinRT
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=72438032d6d6fbe934a09ce217c7ac6692c63841
> ---
>
>  contrib/src/gpg-error/winrt.patch | 11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/contrib/src/gpg-error/winrt.patch b/contrib/src/gpg-error/winrt.patch
> index 4c11c71..4bcee8d 100644
> --- a/contrib/src/gpg-error/winrt.patch
> +++ b/contrib/src/gpg-error/winrt.patch
> @@ -27,3 +27,14 @@
>   }
>
>   /* localname.c from gettext END.  */
> +--- libgpg-error/src/w32-gettext.c.orig        2016-08-25 15:55:09.006943405 +0200
> ++++ libgpg-error/src/w32-gettext.c     2016-08-25 15:56:47.442788455 +0200
> +@@ -1383,7 +1383,7 @@
> + {
> +   int n;
> +   char *result;
> +-  unsigned int cpno = GetConsoleOutputCP ();
> ++  unsigned int cpno = CP_UTF8;
> +
> +   /* GetConsoleOutputCP returns the 8-Bit codepage that should be used
> +      for console output. If the codepage is not returned we fall back
>
> _______________________________________________
> vlc-commits mailing list
> vlc-commits at videolan.org
> https://mailman.videolan.org/listinfo/vlc-commits


More information about the vlc-devel mailing list