Fired up a Solaris/x86 VM and installed ASE 16:
- ASE 16.0 SP02 PL03 (Solaris/x86)
- utf8/binary
- 2K page size
Your test case generates the correct result.
All of my test cases generate correct results.
Will have to see if I can locate a linux host to see if this is an OS issue ... and if no issue there ... will have to locate a SP02 PL02 install ...