combine-files: Adopt the encoding of the first input file.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 30 Apr 2023 01:07:35 +0000 (18:07 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 30 Apr 2023 01:07:35 +0000 (18:07 -0700)
commit7d15b322392a7bc29c7da540a8e2de2d2cf9c808
treef03f05d5228342bc9b8b10dc6a14bd30ea4d6048
parent6e30f48a8f7ee01f013318866176884e511aafe7
combine-files: Adopt the encoding of the first input file.

Previously, there was no good way to control the output encoding, which was
simply the default encoding.  One could use SET LOCALE, but it seems more
reasonable to use the encoding from one of the input files, and the first
one is the most obvious choice.

Also, improve the warning about incompatible input encodings.
src/language/commands/combine-files.c
tests/language/commands/match-files.at