[Top][All Lists]

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

Re: [bug-gawk] gawk 4.x series mmap attempts to alocates 32GB of memory

From: Aharon Robbins
Subject: Re: [bug-gawk] gawk 4.x series mmap attempts to alocates 32GB of memory ...
Date: Wed, 06 Aug 2014 11:08:55 +0300
User-agent: Heirloom mailx 12.5 6/20/10


I have reread this thread. It discusses many things that I don't know
anything about, so it would be a bad idea for me to propose solutions
to Gentaros's problems.

It looks like what's desired is a way to convert multibyte strings to
wide characters manually instead of relying on the system libraries to
do so, and also the ability to do binary I/O. (length_in_bytes(),
substr_in_bytes(), write_bytes(), read_bytes(), ...)

(Parenthetically, it seems that many of the patches and extensions you've
used with earlier gawk versions were unofficial - I'm not familiar with

I think that you can write extensions that do what you need; they
will probably function best when -b is used so that gawk won't
try to convert multibyte strings to characters not under your control.

BTW - your sample binary sprintf is fine as a function but not as
an input parser. Please reread that chapter in the manual.

I'm sorry that I can't help you further.


reply via email to

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