POV-Ray : Newsgroups : povray.bugreports : Parse Error: String too long. : Re: Parse Error: String too long. Server Time
26 Apr 2024 11:08:50 EDT (-0400)
  Re: Parse Error: String too long.  
From: Thorsten Froehlich
Date: 30 Dec 2014 10:55:01
Message: <web.54a2cab1f7cf417b920138f00@news.povray.org>
Le_Forgeron <lef### [at] freefr> wrote:
> Sorry dear, but a string literal (e.g.  "Povray is a nice program" in a
> #declare or #local) longer than 255 would lead to a parse error with the
> original parser.
>
> Hence my patch in my master branch of hgpovray (made in May 2014).
>
> I mean:
>
> #declare MyString = "Povray is a nice program";
>
> Now extends the string... and see povray fails to parse it when the
> limit is reached.

Hmm, then I probably fixed this in my local branch in Perforce some time ago
when I changed the code there to use UTF8 throughout ... the fix certainly is to
change the parsing code for string literals and not tweak the buffer size.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.