]> git.baikalelectronics.ru Git - kernel.git/commit
clang-format: Use POSIX locale for `sort`
authorMiguel Ojeda <ojeda@kernel.org>
Fri, 20 May 2022 11:53:07 +0000 (13:53 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Fri, 20 May 2022 12:02:06 +0000 (14:02 +0200)
commite4a51972590718fabe53476094ddb611f09412c2
tree1fcb83267dc403169ffa120d0941bfcebd4ee237
parent83885ea4831d5815b15dddedf619cf1e24b053d6
clang-format: Use POSIX locale for `sort`

This avoids differences when different people run the command,
which is relevant for our use case, e.g.:

    $ LC_ALL=en_US.UTF-8 sort test
    ata_for_each_link
    __ata_qc_for_each
    ata_qc_for_each

    $ LC_ALL=C sort test
    __ata_qc_for_each
    ata_for_each_link
    ata_qc_for_each

Link: https://lore.kernel.org/lkml/CANiq72=7=ZpAObWRmposOmnyZ8XR_eNHCBtA3bu3fusmcPUwDA@mail.gmail.com/
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
.clang-format