2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-01-19 17:32:31 +00:00

bug fix to previous test

This commit is contained in:
Martin Green 2022-06-21 22:45:11 +01:00
parent 843bfa8ba6
commit f0a9c33795

View File

@ -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, })