public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Laszlo Ersek" <lersek@redhat.com>
To: "Feng, Bob C" <bob.c.feng@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>,
	"Fan, ZhijuX" <zhijux.fan@intel.com>
Cc: "Gao, Liming" <liming.gao@intel.com>,
	Leif Lindholm <leif.lindholm@linaro.org>
Subject: Re: [edk2-devel] [PATCH] BaseTools:fixed Build failed issue for Non-English OS
Date: Fri, 22 Nov 2019 17:47:26 +0100	[thread overview]
Message-ID: <58388e00-7bcd-7a58-cc74-6a32d5e9589c@redhat.com> (raw)
In-Reply-To: <08650203BA1BD64D8AD9B6D5D74A85D16156A292@SHSMSX104.ccr.corp.intel.com>

Hi Bob,

On 11/22/19 07:39, Feng, Bob C wrote:

> [Bob] The build failure was found on a platform which uses Structure Pcds in dsc and the build machine is a Win10 with Korean language.
> The present patch descripts the build failure case.

> [Bob] I agree. "Non-English OS" is not precise. For this case, the build failure is because the visual studio c compiler output message includes localized string. 

> [Bob] I think for this case build tool does not need to handle the non-ascii characters so 'Ignore' will be enough.

> [Bob] I agree to mention the present patch is to revert part of commit 8ddec24dea74, drop "non-English OS" language, but keep "structure PCD".

thanks for following up.

I'm happy if you agree to mention commit 8ddec24dea74.

Furthermore, I understand that Visual Studio can print localized
strings. But, there are two things that remain unclear:

- Why are such messages tied to structure PCDs? Can Visual Studio *not*
print the same kind of localized message in other cases? Like, what if
you have a (VOID*) PCD and assign an L"..." string to it, in the
platform DSC?

I mean I always encourage patch authors to include as many details about
the failure scenario in the commit message as they feel comfortable
about. But the current commit message suggests the issue is specific to
structure PCDs *only*. That's the confusing part.

- You mention "I think for this case build tool does not need to handle
the non-ascii characters so 'Ignore' will be enough." -- Sure, I guess
for this particular case, "Ignore" could be OK -- but the method that's
being modified bears the generic name "ExecuteCommand".

What *else* is ExecuteCommand() used for? I'm not convinced that
ignoring decoding errors in the standard output / standard error of the
subprocess is acceptable in *all* cases.

If there is no other use case for ExecuteCommand()'s standard output /
standard error than to print them to the edk2 build log, then I agree
"ignore" is tolerable. But I don't know if that's the only use case. If
it is, it should be stated in the commit message.

Thanks
Laszlo


  reply	other threads:[~2019-11-22 16:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-20 11:27 [PATCH] BaseTools:fixed Build failed issue for Non-English OS Fan, ZhijuX
2019-11-21  7:08 ` Bob Feng
2019-11-21 17:53 ` [edk2-devel] " Laszlo Ersek
2019-11-22  6:39   ` Bob Feng
2019-11-22 16:47     ` Laszlo Ersek [this message]
2019-11-25  1:37       ` Bob Feng
2019-11-25 12:12         ` Laszlo Ersek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58388e00-7bcd-7a58-cc74-6a32d5e9589c@redhat.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox