Imported Upstream version 4.4.0.122

Former-commit-id: a99f46acaeba3ab496c7afc02c29b839e30a0d0b
This commit is contained in:
Xamarin Public Jenkins
2016-04-12 13:19:31 -04:00
parent a632333cc7
commit d444f0caa4
118 changed files with 4121 additions and 1632 deletions

View File

@ -404,7 +404,7 @@ namespace Mono {
static void EscapeString (TextWriter output, string s)
{
foreach (var c in s){
if (c > 32){
if (c >= 32){
output.Write (c);
continue;
}
@ -416,7 +416,7 @@ namespace Mono {
case '\b':
output.Write ("\\b"); break;
case '\n':
output.Write ("\\n");
output.Write ("\n");
break;
case '\v':
@ -448,7 +448,7 @@ namespace Mono {
output.Write ("'\\''");
return;
}
if (c > 32){
if (c >= 32){
output.Write ("'{0}'", c);
return;
}
@ -482,7 +482,7 @@ namespace Mono {
break;
default:
output.Write ("'\\x{0:x}", (int) c);
output.Write ("'\\x{0:x}'", (int) c);
break;
}
}