From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vwbvl-0008LX-0W for mharc-grub-devel@gnu.org; Fri, 27 Dec 2013 13:14:41 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vwbvj-0008LR-9A for grub-devel@gnu.org; Fri, 27 Dec 2013 13:14:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vwbvi-0000Aq-3g for grub-devel@gnu.org; Fri, 27 Dec 2013 13:14:39 -0500 Received: from mail-we0-x234.google.com ([2a00:1450:400c:c03::234]:48279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vwbvh-0000Ah-Sk for grub-devel@gnu.org; Fri, 27 Dec 2013 13:14:38 -0500 Received: by mail-we0-f180.google.com with SMTP id t61so8515954wes.11 for ; Fri, 27 Dec 2013 10:14:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=inU5VY29sjgdjEsBadiHxyRxBFS12wT0qaNDBzZsFWs=; b=JJXInYWx/WA1cM9IskW29CVFq0swpibBVfdPbo2jp5O+bMMy8ZBWh/Kpv4vcdiFPuP wQs2hUa2LutZtebdNGNTltZfaiqcuZqsWNSqGDCmuCpiFZxBGK82ZKFgksZdDw/+CgZr XeE2RyMu1g4XvQPjyCQsRUOPdqIawxhPw1da+0quxMVmovuWI/kSY23Ly4VYHNzSCg0N vodxXB5GOnHo1De06T1D9Tm0GzGvscjVJrUoHxlECmIXkjiFxNwXEDUsbL5/9XFyNe+Q vkxyOrJHu5wnV1rNbHUSSvdNghNa4xlVjzHmlnEEcCl9qyNnNWmrRdrrU9W88JgfB2pK QURw== X-Received: by 10.180.149.209 with SMTP id uc17mr33990746wib.61.1388168076319; Fri, 27 Dec 2013 10:14:36 -0800 (PST) Received: from ?IPv6:2001:67c:20a1:1224:863a:4bff:fe50:abc4? ([2001:67c:20a1:1224:863a:4bff:fe50:abc4]) by mx.google.com with ESMTPSA id hy8sm19749610wjb.2.2013.12.27.10.14.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Dec 2013 10:14:35 -0800 (PST) Message-ID: <52BDC380.3070206@gmail.com> Date: Fri, 27 Dec 2013 19:14:24 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [PATCH] do not reset console font when running utils on Windows References: <1388166132-10890-1-git-send-email-arvidjaar@gmail.com> In-Reply-To: <1388166132-10890-1-git-send-email-arvidjaar@gmail.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l96QEhvauiEh33KJFqdQHSueDRMhTpGrF" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::234 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Dec 2013 18:14:40 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --l96QEhvauiEh33KJFqdQHSueDRMhTpGrF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 27.12.2013 18:42, Andrey Borzenkov wrote: > This is not required as utilities provide just simple text output. This= > avoids surprising unexpected change of window look'n'feel. >=20 Without it windows is unable to output any character outside of default character set. > --- > grub-core/osdep/windows/init.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/grub-core/osdep/windows/init.c b/grub-core/osdep/windows/i= nit.c > index 98c325c..629d785 100644 > --- a/grub-core/osdep/windows/init.c > +++ b/grub-core/osdep/windows/init.c > @@ -30,6 +30,7 @@ > =20 > #include "progname.h" > =20 > +#ifndef GRUB_UTIL > struct grub_windows_console_font_infoex { > ULONG cbSize; > DWORD nFont; > @@ -111,6 +112,7 @@ set_console_unicode_font (void) > func_SetConsoleFont (err_handle, 12); > } > } > +#endif > =20 > static char *grub_util_base_directory; > static char *locale_dir; > @@ -148,10 +150,12 @@ grub_util_host_init (int *argc __attribute__ ((un= used)), > { > char *ptr; > =20 > +#infdef GRUB_UTIL > SetConsoleOutputCP (CP_UTF8); > SetConsoleCP (CP_UTF8); > =20 > set_console_unicode_font (); > +#endif > =20 > #if SIZEOF_TCHAR =3D=3D 1 > =20 >=20 --l96QEhvauiEh33KJFqdQHSueDRMhTpGrF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlK9w4kACgkQmBXlbbo5nOsXeAD/UdRqxU+Y6O5SQgw6AR9GBaPI gEtsAOo6hfsrMO3wVT0BAKqVgJtNVsZHwdNjV9BtNyQtuB6LR8rh3OHqBuN6WIRH =fnMA -----END PGP SIGNATURE----- --l96QEhvauiEh33KJFqdQHSueDRMhTpGrF--