Index: chrome/tools/convert_dict/hunspell_reader.cc |
=================================================================== |
--- chrome/tools/convert_dict/hunspell_reader.cc (revision 37777) |
+++ chrome/tools/convert_dict/hunspell_reader.cc (working copy) |
@@ -20,10 +20,10 @@ |
static_cast<unsigned char>((*line)[2]) == 0xbf) |
*line = line->substr(3); |
- std::wstring line_input_wide = UTF8ToWide(*line); |
- std::wstring line_output_wide; |
- TrimWhitespace(line_input_wide, TRIM_ALL, &line_output_wide); |
- *line = WideToUTF8(line_output_wide); |
+ // Treat this text as an ASCII text and trim whitespace characters as |
+ // hunspell does. The returned text is to be converted into UTF-8 text with |
+ // the encoding defined in an affix file. |
+ TrimWhitespace(*line, TRIM_ALL, line); |
} |
std::string ReadLine(FILE* file) { |