Add workaround for CSV locale separators
@@ -55,6 +55,22 @@ VOID PhpEscapeStringForCsv(
PhAppendStringBuilder2(StringBuilder, L"\"\"");
+ break;
+ case L',':
+ if (runStart)
+ {
+ PhAppendStringBuilderEx(StringBuilder, runStart, runLength * sizeof(WCHAR));
+ runStart = NULL;
+ }
+
+ // Note: There doesn't seem to be a proper way to escape
+ // commas for some locales in a way that works with all
+ // third party software. For now we'll swap commas
+ // for full stops. This works but prevents formatting
+ // integers with the correct decimal separator. (dmex)
+
+ PhAppendStringBuilder2(StringBuilder, L".");
+
break;
default:
if (runStart)
