@Getmem
Does my example work with your code too? It is statically linked here against the units.
It is verified against several codepages and texts of sufficient length.
Note there are no warnings to fix???. Only hints and these are harmless because of inheritance. Except the local vars.
This is what is left in my translation.:
fpc -B -Fu./sbseq -Fu/home/pi/Downloads/charset/src/sbseq -Fu/usr/lib/gcc/arm-linux-gnueabihf/4.9.2 -glh -O- -Fu/home/pi/Development/FreePascal/lazarus/lcl/units/arm-linux/* -Fi/home/pi/fpctrunk/packages/fv/src -Fu/usr/local/lib/fpc/3.1.1/units/arm-linux/* -Fu/home/pi/synapse -vwhe -CfVFPV4 "testcharset.pas" (in directory: /home/pi/Downloads/charset2/src)
CustomDetector.pas(21,25) Hint: Parameter "aBuf" not used // is used in derivaties
CustomDetector.pas(21,39) Hint: Parameter "aLen" not used // same
nsEscCharsetProber.pas(49,2) Hint: Local const "NUM_OF_ESC_CHARSETS" is not used // these can be used when configured as per docs
MBUnicodeMultiProber.pas(52,2) Hint: Local const "NUM_OF_PROBERS" is not used // same
testcharset.pas(11,21) Hint: Variable "About" does not seem to be initialized //it's a record for **** sake
Compilation finished successfully.