Bug 185605

Summary: [Qyoto] UICS does not handle correctly non-ascii characters
Product: [Unmaintained] bindings Reporter: Cédric Belin <cedric>
Component: generalAssignee: kde-bindings
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Cédric Belin 2009-02-26 14:35:45 UTC
Version:            (using KDE 4.1.4)
Compiler:          Qt User Interface Compiler version 4.4.3 
OS:                Linux
Installed from:    Ubuntu Packages

I designed an UI in QT Designer for use with Qyoto (Qt C# binding).
As I'm French, some of my QLabel objects use stressed characters (like é, è, ç, à, û... even other non-ASCII characters like ©).

When I compile the .ui file with UICS (the UI compiler from Qyoto development tools), all my strings seems to be converted in non-Utf8 encoding : all stressed characters are replaced by escaped sequences that do not compile under GMCS (Mono C# compiler).

For example : "Chaîne à coder :" becomes "Cha\303\256ne \303\240 coder :" in the source file generated by UICS.
When I compile it, I obtain errors like : "Unrecognized escape sequence '\3' (CS1009)".

So UICS is completely useless for non-English languages.
Comment 1 Cédric Belin 2009-02-26 14:38:46 UTC
Ooops ! This bug should not be related to "kde" product, but to "bindings"... Sorry.
Comment 2 Arno Rehn 2009-02-28 17:11:37 UTC
SVN commit 933302 by arnorehn:

* Fix uics generating the wrong escape codes for
  non-ASCII characters. Fixes bug reported by
  CedX.

BUG: 185605



 M  +6 -8      utils.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=933302