Blame SOURCES/cobbler-unicode-scripts.patch

1070a0
diff -rupN cobbler-2.0.7.old/cobbler/templar.py cobbler-2.0.7/cobbler/templar.py
1070a0
--- cobbler-2.0.7.old/cobbler/templar.py	2015-05-06 14:47:57.858206601 -0400
1070a0
+++ cobbler-2.0.7/cobbler/templar.py	2015-05-06 14:54:56.002214099 -0400
1070a0
@@ -108,6 +108,9 @@ class Templar:
1070a0
         # tell Cheetah not to blow up if it can't find a symbol for something
1070a0
         raw_data = "#errorCatcher ListErrors\n" + raw_data
1070a0
1070a0
+        # specify unicode encoding for Cheetah Compiler
1070a0
+        raw_data = "#unicode UTF-8\n" + raw_data
1070a0
+
1070a0
         table_copy = search_table.copy()
1070a0
1070a0
         # for various reasons we may want to call a module inside a template and pass
1070a0
 
1070a0
diff -rupN cobbler-2.0.7.old/cobbler/template_api.py cobbler-2.0.7/cobbler/template_api.py
1070a0
--- cobbler-2.0.7.old/cobbler/template_api.py	2015-05-06 14:47:57.860206615 -0400
1070a0
+++ cobbler-2.0.7/cobbler/template_api.py	2015-05-06 14:59:50.250384146 -0400
1070a0
@@ -311,8 +311,9 @@ class Template(BuiltinTemplate, MacrosTe
1070a0
                     pass
1070a0
 
1070a0
         try:
1070a0
-            return utils.read_file_contents('%s/%s' % (self.getVar('snippetsdir'),
1070a0
-                file), fetch_if_remote=True)
1070a0
+            return "#unicode UTF-8\n" + utils.read_file_contents(
1070a0
+                    '%s/%s' % (self.getVar('snippetsdir'), file),
1070a0
+                    fetch_if_remote=True)
1070a0
         except FileNotFoundException:
1070a0
             return None
1070a0