bug-bash
[Top][All Lists]
Advanced

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

Re: Corrupted multibyte characters in command substitutions fixes may be


From: Ángel
Subject: Re: Corrupted multibyte characters in command substitutions fixes may be worse than problem.
Date: Mon, 07 Feb 2022 23:52:46 +0100

On 2022-02-07 at 11:55 +0100, Alex fxmbsw7 Ratchev wrote:
> > > however my solution still stays
> > > you just use memory locations instead of c strings
> > > and those entries in memory are of course of known length, before
> > > setting and all is fine
> > 
> > "Your" solution is decades old.  Everyone knows how Pascal-style
> > strings work.  This is not cutting-edge computer science.
> 
> i dunno what pascal strings are, sorry

Pascal strings refers to strings prefixed with their length:
https://en.wikipedia.org/wiki/String_(computer_science)#Length-prefixed

Basically, what you were proposing.


And as Veláquez said, it's ingenuous propose a solution nobody else
asked for, expecting others to spend the effort of actually
implementing it (plus the critics of their result, such as a limitation
on the string length, or of wasted memory for every pointer).





reply via email to

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