Skip to content

Commit

Permalink
Merge pull request #153 from aprsorg/hessu-encoding
Browse files Browse the repository at this point in the history
validate, workflow: Try to get XML UTF-8 encoding declared right
  • Loading branch information
hessu authored Jun 4, 2024
2 parents 8837032 + cfa77a1 commit 95cc0bf
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 95cc0bf

Please sign in to comment.