Re: [PATCH/RFC v1 1/1] Support working-tree-encoding "UTF-16LE-BOM"

2018-12-29 Thread Philip Oakley
(adding Brian as cc who was in the original thread) On 29/12/2018 15:48, Adrián Gimeno Balaguer wrote: Hello again. I appreciate the grown interest in this issue. Torsten, may I know what is the benefit on your code? My PR solved it by only tweaking the utf8.c's function 'has_prohibited_utf_bo

Re: [PATCH/RFC v1 1/1] Support working-tree-encoding "UTF-16LE-BOM"

2018-12-29 Thread Adrián Gimeno Balaguer
Hello again. I appreciate the grown interest in this issue. Torsten, may I know what is the benefit on your code? My PR solved it by only tweaking the utf8.c's function 'has_prohibited_utf_bom', which is likely the shortest way: https://github.com/git/git/pull/550/files In order to make sure ev

[PATCH/RFC v1 1/1] Support working-tree-encoding "UTF-16LE-BOM"

2018-12-29 Thread tboegi
From: Torsten Bögershausen Users who want UTF-16 files in the working tree set the .gitattributes like this: test.txt working-tree-encoding=UTF-16 After a checkout, the resulting file has a BOM and is encoded in "UTF-16". The unicode standard allows both little- and big-endianess (LE/BE) for tho