diff options
author | 2016-12-19 17:03:52 -0400 | |
---|---|---|
committer | 2016-12-19 17:03:52 -0400 | |
commit | 1ccc1ecd9f92131d0cc9f46a7ca5d97888039aa5 (patch) | |
tree | eef6ef82092c14f41693031e317f1700aa2b5f55 /doc/bugs/Linux_standalone__39__s_metadata_--batch_can__39__t_parse_UTF-8/comment_1_1765400777911cc61eb591b76c84ae89._comment | |
parent | f975e5814bfa506b715ac66df1b76c66d37668ba (diff) |
Linux standalone: Improve generation of locale definition files, supporting locales such as, en_GB.UTF-8.
Diffstat (limited to 'doc/bugs/Linux_standalone__39__s_metadata_--batch_can__39__t_parse_UTF-8/comment_1_1765400777911cc61eb591b76c84ae89._comment')
-rw-r--r-- | doc/bugs/Linux_standalone__39__s_metadata_--batch_can__39__t_parse_UTF-8/comment_1_1765400777911cc61eb591b76c84ae89._comment | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/bugs/Linux_standalone__39__s_metadata_--batch_can__39__t_parse_UTF-8/comment_1_1765400777911cc61eb591b76c84ae89._comment b/doc/bugs/Linux_standalone__39__s_metadata_--batch_can__39__t_parse_UTF-8/comment_1_1765400777911cc61eb591b76c84ae89._comment new file mode 100644 index 000000000..cf591d65e --- /dev/null +++ b/doc/bugs/Linux_standalone__39__s_metadata_--batch_can__39__t_parse_UTF-8/comment_1_1765400777911cc61eb591b76c84ae89._comment @@ -0,0 +1,21 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2016-12-19T20:37:56Z" + content=""" +JSON uses a UTF-8 encoding. So the usual hack used in git-annex +of bypassing the system locale and essentially reading data as binary can't +work for --json. + +So, I think you need to be using a unicode locale, which is properly set up +in order to use --json. And, the data fed in via --json needs to actually +be encoded as unicode and not some other encoding. + +runshell was recently changed to bypass using the system locales, it +includes its own locale data and attempts to generate a locale definition +file for the locale. The code that did that was failing to notice that +en_GB.UTF-8 was a UTF-8 locale (en_GB.utf8 would work though), which +explains why the locale is not set inside runshell +(git-annex.linux/git-annex is a script that uses runshell). I've corrected +that problem, and verified it fixes the problem you reported. +"""]] |