← Back to team overview

pyexiv2-developers team mailing list archive

Null bytes in strings

 

Hi everyone,

What is the best way for Pyexiv2 to handle Exif values that have Null bytes ('\x00') in the string value? They are problematic -- any strings containing them cannot be used as filenames, for instance.

Should the raw_value, value or human_value have Null bytes automatically stripped, or should that decision be made by the calling application? Or should the utilities module have a "sanity checker" to examine the Exif values?

Damon

--

http://www.damonlynch.net




Follow ups