diff --git a/string/public/nsUTF8Utils.h b/string/public/nsUTF8Utils.h index 9de08796d8e5..a78fe8dd3869 100644 --- a/string/public/nsUTF8Utils.h +++ b/string/public/nsUTF8Utils.h @@ -187,8 +187,7 @@ class ConvertUTF8toUTF16 } else { - if ( ucs4 != 0xFEFF ) // ignore BOM - *out++ = ucs4; + *out++ = ucs4; } } mBuffer = out; diff --git a/xpcom/string/public/nsUTF8Utils.h b/xpcom/string/public/nsUTF8Utils.h index 9de08796d8e5..a78fe8dd3869 100644 --- a/xpcom/string/public/nsUTF8Utils.h +++ b/xpcom/string/public/nsUTF8Utils.h @@ -187,8 +187,7 @@ class ConvertUTF8toUTF16 } else { - if ( ucs4 != 0xFEFF ) // ignore BOM - *out++ = ucs4; + *out++ = ucs4; } } mBuffer = out;