Commit ddced136 authored by baire's avatar baire
Browse files

keep control characters escaped

parent d780d42d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -202,12 +202,13 @@ void normalise_escaped_string (Charstring& cs) throw (DecodeError)
			c = *p;
		}

		if (c<128)
		if (((c >= 32) && (c<127))
		 | (c == '\r') | (c == '\n') | (c == '\t') | (c == '%'))
		{
			// 7-bit character
			result += c;
		} else {
			// 8-bit character
			// 8-bit character and control characters
			// -> escape it
			char buff[4];
			sprintf (buff, "%%%02x", c);