Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364444 - Wrong non-latin string constants encoding in asm files
Summary: Wrong non-latin string constants encoding in asm files
Status: NEW
Alias: None
Product: MMT.ATL
Classification: Modeling
Component: Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: mmt-atl.toolkit-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-22 03:47 EST by Nikolay Kasyanov CLA
Modified: 2011-11-22 03:49 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Kasyanov CLA 2011-11-22 03:47:23 EST
Build Identifier: 20110916-0149

Non-latin constants doesn't encoded properly in asm file: encoding in xml header is ISO-8859-1, but constants are written as is.

It leads to broken encoding of constants when asm file loaded to VM, and eventually to broken encoding of fields in output model for which such constants used.

Workarounds:
1. Edit asm file by hand, replace constants with encoded constants (tested).
2. Edit asm file by hand, set encoding in header to UTF-8.

Reproducible: Always

Steps to Reproduce:
1. Create ATL transformation with an non-latin string constant into it
2. Open corresponding asm file
3. Find that constant in asm file saved as in atl file, but it should be encoded
Comment 1 Nikolay Kasyanov CLA 2011-11-22 03:49:22 EST
http://www.eclipse.org/forums/index.php?t=rview&goto=757871 initial thread