-
Xing Liu authored
Some unicode special characters in the file path should be filtered, such as, http://unicode.org/reports/tr9/#Directional_Formatting_Characters On Linux, the OS doesn't specify the file system encoding, the filtering function to generate file path only parses the string as ASCII, but the input string is actually already UTF8. So illegal unicode chars will bypass the filtering. This CL parses Linux file system string as UTF-8, and replace illegal chars with '_' instead of '-'. Bug: 686503 Change-Id: I2cdd6b183391c77c5a4af86f1710eb02c9fa7d57 Reviewed-on: https://chromium-review.googlesource.com/580580 Reviewed-by: Scott Violet <sky@chromium.org> Reviewed-by: David Trainor <dtrainor@chromium.org> Reviewed-by: Bill Budge <bbudge@chromium.org> Reviewed-by: Jungshik Shin <jshin@chromium.org> Reviewed-by: Asanka Herath <asanka@chromium.org> Commit-Queue: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#493534}
f5d0556b