Chromium Code Reviews| Index: chrome/tools/convert_dict/aff_reader.cc |
| diff --git a/chrome/tools/convert_dict/aff_reader.cc b/chrome/tools/convert_dict/aff_reader.cc |
| index ea7e2a84465e87e9b45a3ae69af08108ded29ef3..767ba92b6f6bbe2efa78fdfa8136214f2c8c38ad 100644 |
| --- a/chrome/tools/convert_dict/aff_reader.cc |
| +++ b/chrome/tools/convert_dict/aff_reader.cc |
| @@ -48,7 +48,8 @@ void CollapseDuplicateSpaces(std::string* str) { |
| AffReader::AffReader(const std::string& filename) |
| : has_indexed_affixes_(false) { |
| - file_ = file_util::OpenFile(filename, "r"); |
| + FilePath path = FilePath::FromWStringHack(ASCIIToWide(filename)); |
|
Evan Martin
2010/07/08 16:51:11
I am going to improve this in a follow-up change.
|
| + file_ = file_util::OpenFile(path, "r"); |
| // Default to Latin1 in case the file doesn't specify it. |
| encoding_ = "ISO8859-1"; |