From 3c75923e2daf0737d500a0b29e5f3549dc883fc9 Mon Sep 17 00:00:00 2001
From: Houtan Bastani <houtan@dynare.org>
Date: Tue, 5 Nov 2013 19:06:20 +0100
Subject: [PATCH] =?UTF-8?q?revert=20=C2=A3=20change=20as=20156=20is=20an?=
 =?UTF-8?q?=20extended=20ascii=20code?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 mex/sources/bytecode/ErrorHandling.hh | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/mex/sources/bytecode/ErrorHandling.hh b/mex/sources/bytecode/ErrorHandling.hh
index 2c16ce62f0..2a28c3dce9 100644
--- a/mex/sources/bytecode/ErrorHandling.hh
+++ b/mex/sources/bytecode/ErrorHandling.hh
@@ -37,8 +37,6 @@
 # define CHAR_LENGTH 2
 #endif
 
-#define ASCII_POUND_SIGN_CODE 156
-
 #ifdef _MSC_VER
 #include <limits>
 #define M_E 2.71828182845904523536
@@ -332,7 +330,7 @@ public:
     string tmp_n(str.length(), ' ');
     string dollar, pound, tilde;
     dollar = "$";
-    pound = (char)ASCII_POUND_SIGN_CODE;
+    pound = "�";
     tilde = "~";
     for (unsigned int i = 0; i < str.length(); i++)
       {
@@ -1277,7 +1275,7 @@ public:
                       tmp_out << "$";
                     tmp_out << " / ";
                     if (isinf(r))
-                      tmp_out << (char)ASCII_POUND_SIGN_CODE;
+                      tmp_out << "�";
                   }
                 else
                   tmp_out << " / ";
@@ -1440,7 +1438,7 @@ public:
                 if (compute)
                   {
                     if (isnan(r))
-                      tmp_out << "$ ^ " << (char)ASCII_POUND_SIGN_CODE;
+                      tmp_out << "$ ^ " << "�";
                     else
                       tmp_out << " ^ ";
                   }
@@ -1482,7 +1480,7 @@ public:
                   if (compute)
                     {
                       if (isnan(r))
-                        tmp_out << "$ PowerDeriv " << (char)ASCII_POUND_SIGN_CODE;
+                        tmp_out << "$ PowerDeriv " << "�";
                       else
                         tmp_out << "PowerDeriv";
                     }
@@ -1556,7 +1554,7 @@ public:
                 if (compute)
                   {
                     if (isnan(r))
-                      tmp_out << "$log" << (char)ASCII_POUND_SIGN_CODE << "(" << v1 << ")";
+                      tmp_out << "$log" << "�" << "(" << v1 << ")";
                     else
                       tmp_out << "log(" << v1 << ")";
                   }
@@ -1574,7 +1572,7 @@ public:
                 if (compute)
                   {
                     if (isnan(r))
-                      tmp_out << "$log10" << (char)ASCII_POUND_SIGN_CODE << "(" << v1 << ")";
+                      tmp_out << "$log10" << "�" << "(" << v1 << ")";
                     else
                       tmp_out << "log10(" << v1 << ")";
                   }
-- 
GitLab