bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gawk and non-ASCII characters


From: Charles Kozierok
Subject: Re: Gawk and non-ASCII characters
Date: Sat, 16 Oct 2010 09:58:37 -0400

On Sat, Oct 16, 2010 at 9:52 AM, Eli Zaretskii <address@hidden> wrote:
>> Date: Sat, 16 Oct 2010 09:45:18 -0400
>> From: Charles Kozierok <address@hidden>
>> Cc: address@hidden
>>
>> On Sat, Oct 16, 2010 at 9:36 AM, Eli Zaretskii <address@hidden> wrote:
>> >> Date: Sat, 16 Oct 2010 09:11:38 -0400
>> >> From: Charles Kozierok <address@hidden>
>> >> Cc: address@hidden
>> >>
>> >> > What is your locale?  (If this is on GNU/Linux, the `locale' command
>> >> > will show that.)
>> >>
>> >> This is on Windows.
>> >
>> > Then what is your codepage?
>>
>> Not sure. I assume it's the Windows default for a United States install.
>
> What do you see if you type "chcp" and hit the Enter key?
>
> Also, what is the problem with finding these characters?  Are you
> saying that an Awk program that looks for them acts as if there were
> no such characters?

It says the codepage is "437".

I'm just not sure how to make the program properly deal with these
characters. The only way I can even look for them is to generate a
non-ASCII character using "sprintf("%c", 194)". Is that pretty much
it, or is there a more elegant way of handling such characters? I'm
trying to look at this in a bigger picture sense as well.

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]