Opened 3 years ago

Closed 3 years ago

Last modified 21 months ago

#478 closed defect (fixed)

string literals from source code

Reported by: vadim.godunko Owned by:
Priority: major Milestone: 18.0
Component: Matreshka - a2js Version:
Keywords: Cc:

Description

A2JS doesn't pass -gnatW8 switch to GNAT compiler, and, as result, string literals out of ASCII range are represented incorrectly in generated code.

Change History (4)

comment:1 by vadim.godunko, 3 years ago

In 5746:

Add switch for GNAT compiler to enable UTF-8 support.

Refs #478.

comment:2 by vadim.godunko, 3 years ago

Resolution: fixed
Status: newclosed

comment:3 by Maxim Reznik, 3 years ago

I used the switche in corresponding project file:

   Target_Name := project'Target;

   package Compiler is

      case Target_Name is
         when "javascript" =>
            for Switches ("Ada") use ("-gnatW8");

comment:4 by vadim.godunko, 21 months ago

Milestone: 0.8.018.0

Milestone renamed

Note: See TracTickets for help on using tickets.