summaryrefslogtreecommitdiff
path: root/fxjs/cjs_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_util.cpp')
-rw-r--r--fxjs/cjs_util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_util.cpp b/fxjs/cjs_util.cpp
index 25d4590259..883d022006 100644
--- a/fxjs/cjs_util.cpp
+++ b/fxjs/cjs_util.cpp
@@ -264,9 +264,9 @@ CJS_Return CJS_Util::printx(CJS_Runtime* pRuntime,
enum CaseMode { kPreserveCase, kUpperCase, kLowerCase };
static wchar_t TranslateCase(wchar_t input, CaseMode eMode) {
- if (eMode == kLowerCase && FXSYS_isASCIIupper(input))
+ if (eMode == kLowerCase && FXSYS_iswupper(input))
return input | 0x20;
- if (eMode == kUpperCase && FXSYS_isASCIIlower(input))
+ if (eMode == kUpperCase && FXSYS_iswlower(input))
return input & ~0x20;
return input;
}