diff options
author | tao.pei <tao.pei@ck-telecom.com> | 2015-06-02 10:06:20 +0800 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-06-08 15:14:08 +0000 |
commit | d415303c4d02c1d30dd4199bade4694bf2cb4615 (patch) | |
tree | 8ed226002bb752d9df22fe51063083c79bf54a89 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 3a5c054ac3a33753c3aeb2cb26e7b05d64291839 (diff) |
Pass MUTF-8 paths to open(2) instead of UTF-8.
Modified UTF-8 and UTF-8 differ with respect to how they handle
non-BMP characters. Modified UTF-8 uses 2 x 3 byte encodings, one
each for the high and low surrogate, whereas UTF-8 uses a single
4 byte sequence.
File systems don't specify and encoding and therefore the file name
encoding will vary depending on how it's created. All standard
Java APIs (java.io.File / FileOutputStream etc.) use Modified UTF-8
filenames, so we assume that's the status quo.
We will also audit code from the rest of the platform to make sure
that file names are encoded consistently.
bug: 21578056
Change-Id: I8e37af7f7cc442805a48899917f8e61c8f81fba6
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions