|
|
|
|
|
by benibela
2253 days ago
|
|
Here is an example of the mess: I have a benchmark of various maps in freepascal. The benchmark creates strings of random bytes to use as keys. A classic key-value store is the sorted TStringList. Now the benchmark of the TStringList fails. Apparently, because it now assumes the keys are valid utf-8 when using the utf-8 codepage as default codepage. The default codepage can be changed. When I start the benchmark with LANG=C .. it works with the random byte keys. On Windows, the default codepage is usually latin1, so it would work there, too. |
|