CFanatic

Go Back   CFanatic > Programming > C Programming

Join CFanatic Forum Now

Print Japaneese character on Linux terminal & debugging problem topic posted under C Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 04-14-2008, 03:01 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
rajeshgalla is on a distinguished road
| More
Question Print Japaneese character on Linux terminal & debugging problem

Hi everyone,

Question1 : I want to print a japaneese character on linux console. I did following changes before printing on linux console (Putty 0.60).
1. Change console setting to “utf-8” translation.
2. Check locales which are available in console using “locale –a “command.
3. set the appropriate locale using export LC_ALL=”respective locale” (here in this case I have set it to “ja_JP.utf8”).
I am transferring japaneese character from word document using copy and printing it on console using right click. But on console I am getting [] [] (some boxes)
Question2: I want to debug japaneese character using gdb. How can I check japaneese characters for a wide char pointer?
Ex: char *ch=”hi”; Using gdb
(gdb) print ch (or) display ch Will print “hi”
Like this how can I print wide char characters on gdb. Consider I have a input wchar_t *wch=L” 学の”; (If i am able to check wide characters it will help me for debugging)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile C code in Linux Tlhokomelo C Programming 5 11-23-2007 10:50 AM
msdos character mode console programming- multiple windows HowardL Driver Development 0 08-05-2007 11:35 AM
C# print problem -- page orientation benfly08 C# Programming 1 01-19-2007 08:57 PM
Visual Studio hangs during Debugging a thread: PfisterHarald MFC Programming 0 09-13-2006 12:30 PM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 09:30 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board