summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-15 19:45:39 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-15 19:45:39 +0000
commitd250099e0eca3c804873cc08b8a3a73cab89725d (patch)
tree7750f82ce7235d7aa7faab5232b273f391c256ed
parent966e10cdd4f15e7f44b14c4178a81877f63c6691 (diff)
downloadpdfium-d250099e0eca3c804873cc08b8a3a73cab89725d.tar.xz
Convert %s -> %ls for wide string error format.
Make JavaScript tests results correct across platforms. Change-Id: I32e5621f9f37ebb67e45c30ef7b22ea88a3a40af Reviewed-on: https://pdfium-review.googlesource.com/c/44030 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
-rw-r--r--fxjs/js_resources.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/fxjs/js_resources.cpp b/fxjs/js_resources.cpp
index ec20b1e9b5..5df1460cbc 100644
--- a/fxjs/js_resources.cpp
+++ b/fxjs/js_resources.cpp
@@ -17,14 +17,14 @@ WideString JSGetStringFromID(JSMessage msg) {
case JSMessage::kParamTooLongError:
return L"The input value is too long.";
case JSMessage::kParseDateError:
- return L"The input value can't be parsed as a valid date/time (%s).";
+ return L"The input value can't be parsed as a valid date/time (%ls).";
case JSMessage::kRangeBetweenError:
- return L"The input value must be greater than or equal to %s"
- L" and less than or equal to %s.";
+ return L"The input value must be greater than or equal to %ls"
+ L" and less than or equal to %ls.";
case JSMessage::kRangeGreaterError:
- return L"The input value must be greater than or equal to %s.";
+ return L"The input value must be greater than or equal to %ls.";
case JSMessage::kRangeLessError:
- return L"The input value must be less than or equal to %s.";
+ return L"The input value must be less than or equal to %ls.";
case JSMessage::kNotSupportedError:
return L"Operation not supported.";
case JSMessage::kBusyError: