Skip to content

Commit

Permalink
validate, workflow: Try to get XML UTF-8 encoding declared right
Browse files Browse the repository at this point in the history
  • Loading branch information
hessu committed Jun 4, 2024
1 parent 8837032 commit cfa77a1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
run: |
aws s3 sync \
./build "s3://$AWS_S3_BUCKET" \
--region eu-west-1
aws s3 sync --exclude "*.xml" \
./build "s3://$AWS_S3_BUCKET" \
--region eu-west-1
aws s3 cp \
./build/tocalls.xml "s3://$AWS_S3_BUCKET/tocalls.xml" \
--content-type "application/xml; charset=utf-8" \
--region eu-west-1
4 changes: 2 additions & 2 deletions tools/validate.pl
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ ($$$$$$$)

# XML
my $output = new IO::File(">$out_dir/tocalls.xml");
my $xw = new XML::Writer(OUTPUT => $output);

my $xw = new XML::Writer(OUTPUT => $output, ENCODING => "utf-8");
$xw->xmlDecl();
$xw->startTag("aprsdevices");

$xw->startTag("classes");
Expand Down

0 comments on commit cfa77a1

Please sign in to comment.