Page 1 of 1

[SOLVED] [RVGL 18.1110a] UTF-8/Windows-1252 bug

Posted: Sat Nov 10, 2018 1:35 pm
by SebR
Found this bug with an URV's All's Fair car called "Herr Schönerbus"

On previous release here is how it look like :
Image
download picture

And now (name bug on frontend and race and no more body) :
Image
download picture

NOTE : replacing the "ö" by "o" at car name on parameters.txt solve this issue

NOTE 2 : Found the same bug with "Dirt Gear n°2", removing the "°" fix the bug

NOTE 3 : tested on win32 and linux 32bit : it's the same

Re: [RVGL] UTF-8/Windows-1252 bug with 18.1110a

Posted: Sat Nov 10, 2018 1:55 pm
by kiwi
Info: Your linked pictures are never visible to me, Seb.
Can't say if it's only an issue on my side.

Re: [RVGL] UTF-8/Windows-1252 bug with 18.1110a

Posted: Sat Nov 10, 2018 2:08 pm
by SebR
I add link to download pictures

Re: [RVGL] UTF-8/Windows-1252 bug with 18.1110a

Posted: Sat Nov 10, 2018 5:42 pm
by URV
Tried it on Linux. It seems to act slightly different on my end:

Image

I still get the issue with the name (quite curious that everything after a space is fine, though), but the files seem to load up fine. Note that I'm using the RVZ version rather than the original AF2 release, though I don't think there are many differences between the two aside from the name and the additional variations provided in the RVZ version, so it shouldn't matter.

Re: Seb's pictures: That's because he uses Dropbox to upload the images. He would probably have to use a different image hosting service to be able to use them with the IMG BBCode.

Re: [RVGL 18.1110a] UTF-8/Windows-1252 bug

Posted: Sat Nov 10, 2018 6:05 pm
by SebR
having a : ö or ° on the car name gave the issue on win32 ...

About Dropbox it's strainge that i can see my images even if i'm not logged on TRH

Re: [RVGL 18.1110a] UTF-8/Windows-1252 bug

Posted: Sun Nov 11, 2018 6:45 am
by Huki
Good catch, and reported just in time. I'll fix this.

For info, the bug causes a word containing extended ASCII to get truncated in some cases. The model loading issue happens when the closing double quote (") gets truncated, so it continues reading the next line as part of the NAME.

Re: [RVGL 18.1110a] UTF-8/Windows-1252 bug

Posted: Mon Nov 12, 2018 7:56 pm
by SebR
with 18.1112a it's far away better but not perfect ...

On Linux : "Dirt Gear n°2" appear as "Dirt Gear nx2"

Re: [RVGL 18.1110a] UTF-8/Windows-1252 bug

Posted: Tue Nov 13, 2018 12:34 pm
by Huki
SebR wrote: Mon Nov 12, 2018 7:56 pm with 18.1112a it's far away better but not perfect ...

On Linux : "Dirt Gear n°2" appear as "Dirt Gear nx2"
Dirt Gear 2 looks correctly for me:

Image

I think your installation still has the old font files.
Make sure you're using font.bmo and font.bmp from the latest release.

Re: [RVGL 18.1110a] UTF-8/Windows-1252 bug

Posted: Tue Nov 13, 2018 6:47 pm
by SebR
it was the old font ... :oops: