[fpc-pascal] Issue #39746 fpwidestring case conversion string too long

Tony Whyman tony.whyman at mccallumwhyman.com
Mon Sep 25 17:59:53 CEST 2023

This issue seems to be still open after one year. There was a proposed 
fix: https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/158. 
However the discussion seems to tail off without an obvious resolution.

This is a clear bug in fpwidestring and needs to be fixed. What is the 

A workaround using the Trim function seems to work (e.g. 
Trim(AnsiUpperCase(s))) - I am just not sure if it works all the time.


More information about the fpc-pascal mailing list