On Monday, October 6, 2003, at 01:50 PM, Alastair Tse wrote:
Anyway, I came across a bug which prevented me from fetching the text encoding value using id3_field_getint() from a field of type ID3_FIELD_TYPE_TEXTENCODING. Here is a simple one-liner to fix this behaviour. I hope it can be included in the next version.
Thanks for your patch.
I suppose it was an oversight not to provide an accessor routine for the text encoding field, but in practice it's usually not important because libid3tag uses the field internally to provide UCS-4 strings regardless of the original encoding.
For the next release I will add an id3_field_gettextencoding() routine.
Cheers,