Thread overview
[Issue 2335] New: Message on unicode error
Sep 03, 2008
d-bugmail
Sep 04, 2008
d-bugmail
May 25, 2011
Andrej Mitrovic
May 25, 2011
Andrej Mitrovic
September 03, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2335

           Summary: Message on unicode error
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: benoit@tionex.de


on an uncaught unicode error, the message is printed to the console: Error: 4invalid UTF-8 sequence

The '4' seems wrong.
See std/utf.d line 345


-- 

September 04, 2008
On Wed, Sep 3, 2008 at 6:47 PM, <d-bugmail@puremagic.com> wrote:

> http://d.puremagic.com/issues/show_bug.cgi?id=2335
>
>           Summary: Message on unicode error
>           Product: D
>           Version: 1.033
>          Platform: PC
>        OS/Version: All
>            Status: NEW
>          Severity: normal
>          Priority: P2
>         Component: Phobos
>        AssignedTo: bugzilla@digitalmars.com
>        ReportedBy: benoit@tionex.de
>
>
> on an uncaught unicode error, the message is printed to the console: Error: 4invalid UTF-8 sequence
>
> The '4' seems wrong.
> See std/utf.d line 345
>
>
> --
>
>
You'll also notice in the same function, there are 1invalid, 2invalid, and 3invalid versions of the same error.  It's probably just so the cause can be distinguished, or a remnant of Walter debugging that function.


September 04, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2335





------- Comment #1 from benoit@tionex.de  2008-09-04 03:18 -------
then change to
Error: invalid UTF-8 sequence in decode(char[],int)
Error: invalid UTF-8 sequence in file utf.d line 435
Error: invalid UTF-8 sequence (4)

But 4invalid looks like an error in generating the error.


-- 

May 25, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2335


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich@gmail.com
         Resolution|                            |FIXED


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-05-24 22:36:22 PDT ---
It's been fixed, can't find "4invalid".

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 25, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2335


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


--- Comment #3 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-05-25 07:19:39 PDT ---
Fixing my closing mistakes. Sorry for the noise.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------