Make python start with correct default unicode encoding (#539904).
Currently it's ascii and that's bad. import gtk; changes it to utf-8
anyway but that doesn't happen in text install of course. The default
encoding is set vie sitecustomize.py, it is not possible to do so in any
The patch has been tested with a custom compose.
anaconda | 1 +
scripts/upd-instroot | 1 +
sitecustomize.py | 22 ++++++++++++++++++++++
3 files changed, 24 insertions(+), 0 deletions(-)
create mode 100644 sitecustomize.py
diff --git a/anaconda b/anaconda
index e6cdb94..8043e9d 100755
@@ -1024,6 +1024,7 @@ if __name__ == "__main__":
diff --git a/sitecustomize.py b/sitecustomize.py
new file mode 100644
@@ -0,0 +1,22 @@
+# sitecustomize.py: The python site init code for the Red Hat Installer
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
+# Red Hat, Inc. All rights reserved.
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
Anaconda-devel-list mailing list