File: sitecustomize.py

package info (click to toggle)
edk2 2025.08.01-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 338,148 kB
  • sloc: ansic: 2,159,989; asm: 275,189; perl: 235,301; python: 149,743; sh: 35,024; cpp: 23,915; makefile: 3,474; pascal: 1,465; xml: 806; lisp: 35; ruby: 16; sed: 6; tcl: 4
file content (15 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
## @file
#
#
# Copyright (c) 2009 - 2014, Apple Inc. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
import sys
import locale

if sys.platform == "darwin" and sys.version_info[0] < 3:
  DefaultLocal = locale.getdefaultlocale()[1]
  if DefaultLocal is None:
    DefaultLocal = 'UTF8'
  sys.setdefaultencoding(DefaultLocal)