2014-08-28 15:53:34 +02:00
|
|
|
## @file
|
2014-01-27 06:23:15 +01:00
|
|
|
#
|
2014-08-28 15:53:34 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2009 - 2014, Apple Inc. All rights reserved.<BR>
|
2014-01-27 06:23:15 +01:00
|
|
|
#
|
|
|
|
# This program and the accompanying materials
|
|
|
|
# are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
# which accompanies this distribution. The full text of the license may be found at
|
|
|
|
# http://opensource.org/licenses/bsd-license.php
|
|
|
|
#
|
|
|
|
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
import sys
|
|
|
|
import locale
|
|
|
|
|
|
|
|
if sys.platform == "darwin":
|
|
|
|
DefaultLocal = locale.getdefaultlocale()[1]
|
|
|
|
if DefaultLocal is None:
|
2018-07-05 11:40:04 +02:00
|
|
|
DefaultLocal = 'UTF8'
|
2014-01-27 06:23:15 +01:00
|
|
|
sys.setdefaultencoding(DefaultLocal)
|
|
|
|
|