Closed garyww closed 5 months ago
Do you know the structure to get the cd-text? I searched for it in include/linux/cdrom.h and include/uapi/linux/cdrom.h but didn't find it.
I don't know but libcdio can read it so it might be helpful: http://git.savannah.gnu.org/cgit/libcdio.git/tree/lib/driver/cdtext.c
wchar_t
is 32-bit on Linux and this causes several bugs. When compiling with-fshort-wchar
(forceswchar_t
to be 16-bit) everything about Joliet parsing fails but all other warnings I got previously (see below) were gone.There were also bugs with Joliet and I assume wherever
WCHAR
is used, for example https://github.com/saramibreak/DiscImageCreator/commit/4efafee0f06478886fe7672e1d7e40092ec5bf30 was also caused by this.The problem with
-fshort-wchar
is that it only exists to help build programs that run under WINE, the various GCC wide char functions always assume biggerwchar_t
s. I don't think adding that flag is a good solution. Instead I suggest to useu16string
andchar16_t
for all strings and chars throughout the whole program. I know this would be a big and annoying change but it would guarantee cross-platform support.PS: DIC is relly great and thanks to it and you I'll submit some dumps soon :)