From f0a9c337956327923363543ae25d7c59c1f9a8cc Mon Sep 17 00:00:00 2001
From: Martin Green <martin.speleo@gmail.com>
Date: Tue, 21 Jun 2022 22:45:11 +0100
Subject: [PATCH] bug fix to previous test

---
 core/views/expo.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/views/expo.py b/core/views/expo.py
index 277cb7f..05e3642 100644
--- a/core/views/expo.py
+++ b/core/views/expo.py
@@ -344,10 +344,10 @@ def editexpopage(request, path):
             body = "### File not found ###\n"    + str(filepath)
             import sys
             import locale
-            body = body + "\nsys.getdefaultencoding() = " + sys.getdefaultencoding()
-            body = body + "\nsys.getfilesystemencoding() = " + sys.getfilesystemencoding()
-            body = body + "\nlocale.getdefaultlocale() = " + locale.getdefaultlocale()
-            body = body + "\nlocale.getpreferredencoding() = " + locale.getpreferredencoding()
+            body = body + "\nsys.getdefaultencoding() = " + str(sys.getdefaultencoding())
+            body = body + "\nsys.getfilesystemencoding() = " + str(sys.getfilesystemencoding())
+            body = body + "\nlocale.getdefaultlocale() = " + str(locale.getdefaultlocale())
+            body = body + "\nlocale.getpreferredencoding() = " + str(locale.getpreferredencoding())
             pageform = ExpoPageForm({"html": body, "title": "Missing"})
     return render(request, 'editexpopage.html', {'path': path, 'form': pageform, })