From d250099e0eca3c804873cc08b8a3a73cab89725d Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 15 Oct 2018 19:45:39 +0000 Subject: 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 Commit-Queue: Tom Sepez --- fxjs/js_resources.cpp | 10 +++++----- 1 file 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: -- cgit v1.2.3