CFanatic

Go Back   CFanatic > Programming > C Programming > Advance C


  #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 Advance C 5 11-23-2007 09: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 07:57 PM
Visual Studio hangs during Debugging a thread: PfisterHarald MFC Programming 0 09-13-2006 12:30 PM

 

Follow CFanatic on Twitter
CFanatic Search
Custom Search

Advertisement

Go4Expert's Job Board
Powered by

Go4Expert Newsletter
Enter your Name and Email Address below and Click Subscribe.

Subscriber Counter

Not planning to subscribe yet, browse Go4Expert's Newsletter Archive

All times are GMT -5. The time now is 03:11 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Looking for work in C, C++, C#? Sign up at Elance and search over 30,000 Freelancing jobs today.