Thread overview
[Issue 10393] demangle doesn't work for unicode symbol names
Feb 15, 2016
naptime
Jun 25, 2017
Rainer Schuetze
February 15, 2016
https://issues.dlang.org/show_bug.cgi?id=10393

naptime <naptimeentertainment@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |naptimeentertainment@gmail.
                   |                            |com

--- Comment #1 from naptime <naptimeentertainment@gmail.com> ---
(In reply to Sean Kelly from comment #0)
> currently std.demangle.demangle doesn't work with unicode (see example below)
> 
> If we decide to keep allowing unicode symbols (as opposed to just unicode
> strings/comments), [snip]

I use unicode (Japanese) symbols extensively in my code.  Please fix demangle rather than deprecate non-ASCII identifiers!

--
February 18, 2016
https://issues.dlang.org/show_bug.cgi?id=10393

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh@quickfur.ath.cx

--- Comment #2 from hsteoh@quickfur.ath.cx ---
Can't reproduce problem in dmd git HEAD. Has this been fixed, or am I misunderstanding something?

Full program tested:
------
import std.demangle;
import std.stdio;
import std.traits;

struct A {
    int z;
    void foo(int x){}
    void さいごの果実(int x){}
    void ªå(int x){}
}

void main() {
    mangledName!(A.さいごの果実).demangle.writeln;
}
------

Output:
------
void test.A.さいごの果実(int)
------

--
June 25, 2017
https://issues.dlang.org/show_bug.cgi?id=10393

Rainer Schuetze <r.sagitario@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |r.sagitario@gmx.de
         Resolution|---                         |FIXED

--- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> ---
seems correct to me too. With OMF there is an issue when symbols are compressed, because these interfere with UTF8, but that's not a problem of the demangler.

--