Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Handling of UTF-8 in CDT

Yes, the patch does use that, but there is extra logic to extract
the octal number out of the string received from GDB, before
passing it to java.nio.charset.
Then there is extra logic for escaping non-printable characters
(which I still have to review and figure out :-))

I just wondered if we had that same logic elsewhere.
Not a big deal, just trying to avoid duplication of algorithms
if possible. 

> -----Original Message-----
> From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Schaefer, Doug
> Sent: Thursday, December 15, 2011 11:13 AM
> To: CDT General developers list.
> Subject: Re: [cdt-dev] Handling of UTF-8 in CDT
> 
> There is a character decoding engine in the JRE 
> (java.nio.charset). Could we use that?
> 
> > -----Original Message-----
> > From: cdt-dev-bounces@xxxxxxxxxxx 
> [mailto:cdt-dev-bounces@xxxxxxxxxxx]
> > On Behalf Of Marc Khouzam
> > Sent: Thursday, December 15, 2011 11:05 AM
> > To: 'CDT General developers list.'
> > Subject: [cdt-dev] Handling of UTF-8 in CDT
> > 
> > Hi,
> > 
> > I'm reviewing a nice contribution from Mathias Kunter to 
> help deal with UTF-
> > 8 strings in Debug.
> > The proposed solution is to parse some escaped octal 
> numbers received
> > from GDB and convert them to UTF-8 format for proper 
> display in Eclipse.
> > 
> > I'm just curious if anyone knows if we are already doing 
> something like that
> > elsewhere in CDT?  It sounds like a generic approach, not 
> specific to debug.
> > 
> > Thanks
> > 
> > Marc
> > 
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 

Back to the top