[BUG] Code page not restored [GnuPG, Windows, batch, gpg.exe]

I think this might be a bug. GnuPG (gpg.exe for Windows 2.4.8) does not restore the code page.

c:\>chcp
Active code page: 852
c:\>gpg.exe
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: Go ahead and type your message ...
g^C
c:\>chcp
Active code page: 65001
c:\>chcp 852
Active code page: 852
c:\>gpg.exe --version
gpg (GnuPG) 2.4.8
libgcrypt 1.11.1
Copyright (C) 2025 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: C:\Users\user\AppData\Roaming\gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

c:\>chcp
Active code page: 65001
c:\>

Thank you.

thanks for contacting us. you are right, and this is a known behaviour. gpg needs UTF-8 to work reliably and therefore changes the codepage of the console. and while changing it back on exit seems an easy task, it turned out to be a more complex problem than anticipated, so it was skipped completely. this shouldn’t cause real problems as it only affects the running cmd session, but if you have reason to not use UTF-8 afterwards, unfortunately you will have to switch back to the desired codepage manually.