Search Results

Search: Posts Made By: tdw
26,583
Posted By tdw
Thank you for all your replies. I got it working.
Thank you for all your replies. I got it working.
26,583
Posted By tdw
sed insert text without newline
Hi,

I use sed to insert text at beginning of a file. But sed inserts a newline after my text that I do not need. For example, I want to insert "foo" at the beginning of my file:


> cat myfile...
7,220
Posted By tdw
Thank you very much for the pointers. I followed...
Thank you very much for the pointers. I followed tips from 2nd link and added the line in my script:

system('stty iutf8');

It worked but not completely. Normal width characters worked fine,...
7,220
Posted By tdw
Perl script backspace not working for Unicode characters
Hello,

My Perl script reads input from stdin and prints it out to stdout. After I read input I use BACKSPACE to erase characters. However BACKSPACE does not work with Unicode characters that are...
Forum: Programming 12-30-2010
2,799
Posted By tdw
I have confirmed with Martin Shepherd the author...
I have confirmed with Martin Shepherd the author of libtecla that it does not support Unicode input. It only supports extended ASCII to 8-bits, such as ISO-8859-1.
Forum: Programming 12-28-2010
2,799
Posted By tdw
I explicitly set LC_CTYPE to en_US.UTF-8 to avoid...
I explicitly set LC_CTYPE to en_US.UTF-8 to avoid any confusion. But at one point I did try with setlocale(LC_CTYPE, "") and result was same because the default locale in my env was set to...
Forum: Programming 12-25-2010
2,799
Posted By tdw
Before I start my program, I can enter Chinese...
Before I start my program, I can enter Chinese characters in my shell (bash). Both input and display work fine. Once I start my program from the shell, my terminal can still display characters in...
Forum: Programming 12-24-2010
2,799
Posted By tdw
How to make gl_get_line read unicode characters
Hi,

My program uses gl_get_line from libtecla to get user input from terminal. It works fine as long as I enter English at the terminal prompt. However, if I enter other languages, such as Chinese...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 07:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy