Using gdb how to print multibyte or wide char data.

Discussion in 'C' started by imported_rajeshgalla, Oct 18, 2007.

  1. imported_rajeshgalla

    imported_rajeshgalla New Member

    Joined:
    Oct 10, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I would like to know how to debug multi byte data or wide char data. If I have this (“Þìäïâ€) data in a file. Using a variable I am reading this data. While using gdb I want to print or display. But it was showing some other data. But when I run a.out it’s properly printing on console.

    I expect that may be the problem with charset or language set of gdb.

    If my guess was wrong Please let me know what to do?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice