Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 364444

Summary: Wrong non-latin string constants encoding in asm files
Product: [Modeling] MMT.ATL Reporter: Nikolay Kasyanov <corrmage>
Component: EngineAssignee: mmt-atl.toolkit-inbox <mmt-atl.toolkit-inbox>
Status: NEW --- QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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