public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v1 0/1] Do not call sys.setdefaultencoding with python 3
@ 2019-10-20 10:26 Vitaly Cheptsov
  2019-10-20 10:26 ` [PATCH v1 1/1] BaseTools: " Vitaly Cheptsov
  0 siblings, 1 reply; 4+ messages in thread
From: Vitaly Cheptsov @ 2019-10-20 10:26 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

Solves https://bugzilla.tianocore.org/show_bug.cgi?id=2301.
Requesting for merge in edk2-stable2019011.

Vitaly Cheptsov (1):
  BaseTools: Do not call sys.setdefaultencoding with python 3

 BaseTools/Source/Python/sitecustomize.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.21.0 (Apple Git-122)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 489 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH v1 1/1] BaseTools: Do not call sys.setdefaultencoding with python 3
  2019-10-20 10:26 [PATCH v1 0/1] Do not call sys.setdefaultencoding with python 3 Vitaly Cheptsov
@ 2019-10-20 10:26 ` Vitaly Cheptsov
  2019-10-21  1:23   ` [edk2-devel] " Bob Feng
  2019-10-23  8:57   ` Bob Feng
  0 siblings, 2 replies; 4+ messages in thread
From: Vitaly Cheptsov @ 2019-10-20 10:26 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 854 bytes --]

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2301

This interface was a originally a no-op in python 3, and now
is fully removed causing a build warning on macOS (Darwin).

Signed-off-by: Vitaly Cheptsov <vit9696@protonmail.com>>
---
 BaseTools/Source/Python/sitecustomize.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BaseTools/Source/Python/sitecustomize.py b/BaseTools/Source/Python/sitecustomize.py
index 7dbbf8a232..50783e1b3a 100644
--- a/BaseTools/Source/Python/sitecustomize.py
+++ b/BaseTools/Source/Python/sitecustomize.py
@@ -7,7 +7,7 @@
 import sys
 import locale
 
-if sys.platform == "darwin":
+if sys.platform == "darwin" and sys.version_info[0] < 3:
   DefaultLocal = locale.getdefaultlocale()[1]
   if DefaultLocal is None:
     DefaultLocal = 'UTF8'
-- 
2.21.0 (Apple Git-122)


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 489 bytes --]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [edk2-devel] [PATCH v1 1/1] BaseTools: Do not call sys.setdefaultencoding with python 3
  2019-10-20 10:26 ` [PATCH v1 1/1] BaseTools: " Vitaly Cheptsov
@ 2019-10-21  1:23   ` Bob Feng
  2019-10-23  8:57   ` Bob Feng
  1 sibling, 0 replies; 4+ messages in thread
From: Bob Feng @ 2019-10-21  1:23 UTC (permalink / raw)
  To: devel@edk2.groups.io, vit9696@protonmail.com

Acked-by: Bob Feng <bob.c.feng@intel.com>


-----Original Message-----
From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Vitaly Cheptsov via Groups.Io
Sent: Sunday, October 20, 2019 6:26 PM
To: devel@edk2.groups.io
Subject: [edk2-devel] [PATCH v1 1/1] BaseTools: Do not call sys.setdefaultencoding with python 3

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2301

This interface was a originally a no-op in python 3, and now is fully removed causing a build warning on macOS (Darwin).

Signed-off-by: Vitaly Cheptsov <vit9696@protonmail.com>>
---
 BaseTools/Source/Python/sitecustomize.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BaseTools/Source/Python/sitecustomize.py b/BaseTools/Source/Python/sitecustomize.py
index 7dbbf8a232..50783e1b3a 100644
--- a/BaseTools/Source/Python/sitecustomize.py
+++ b/BaseTools/Source/Python/sitecustomize.py
@@ -7,7 +7,7 @@
 import sys
 import locale
 
-if sys.platform == "darwin":
+if sys.platform == "darwin" and sys.version_info[0] < 3:
   DefaultLocal = locale.getdefaultlocale()[1]
   if DefaultLocal is None:
     DefaultLocal = 'UTF8'
--
2.21.0 (Apple Git-122)


-=-=-=-=-=-=
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#49253): https://edk2.groups.io/g/devel/message/49253
Mute This Topic: https://groups.io/mt/35942396/1768742
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [bob.c.feng@intel.com]
-=-=-=-=-=-=


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [edk2-devel] [PATCH v1 1/1] BaseTools: Do not call sys.setdefaultencoding with python 3
  2019-10-20 10:26 ` [PATCH v1 1/1] BaseTools: " Vitaly Cheptsov
  2019-10-21  1:23   ` [edk2-devel] " Bob Feng
@ 2019-10-23  8:57   ` Bob Feng
  1 sibling, 0 replies; 4+ messages in thread
From: Bob Feng @ 2019-10-23  8:57 UTC (permalink / raw)
  To: devel@edk2.groups.io, vit9696@protonmail.com

Pushed at 5c7006c9de4029afc508e2c43d78de12a0d19cfe

-----Original Message-----
From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of Vitaly Cheptsov via Groups.Io
Sent: Sunday, October 20, 2019 6:26 PM
To: devel@edk2.groups.io
Subject: [edk2-devel] [PATCH v1 1/1] BaseTools: Do not call sys.setdefaultencoding with python 3

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2301

This interface was a originally a no-op in python 3, and now is fully removed causing a build warning on macOS (Darwin).

Signed-off-by: Vitaly Cheptsov <vit9696@protonmail.com>>
---
 BaseTools/Source/Python/sitecustomize.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BaseTools/Source/Python/sitecustomize.py b/BaseTools/Source/Python/sitecustomize.py
index 7dbbf8a232..50783e1b3a 100644
--- a/BaseTools/Source/Python/sitecustomize.py
+++ b/BaseTools/Source/Python/sitecustomize.py
@@ -7,7 +7,7 @@
 import sys
 import locale
 
-if sys.platform == "darwin":
+if sys.platform == "darwin" and sys.version_info[0] < 3:
   DefaultLocal = locale.getdefaultlocale()[1]
   if DefaultLocal is None:
     DefaultLocal = 'UTF8'
--
2.21.0 (Apple Git-122)


-=-=-=-=-=-=
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#49253): https://edk2.groups.io/g/devel/message/49253
Mute This Topic: https://groups.io/mt/35942396/1768742
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [bob.c.feng@intel.com]
-=-=-=-=-=-=


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-23  8:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-20 10:26 [PATCH v1 0/1] Do not call sys.setdefaultencoding with python 3 Vitaly Cheptsov
2019-10-20 10:26 ` [PATCH v1 1/1] BaseTools: " Vitaly Cheptsov
2019-10-21  1:23   ` [edk2-devel] " Bob Feng
2019-10-23  8:57   ` Bob Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox