From: Jan P. <pa...@pi...> - 2008-01-31 14:11:38
|
Dan, this is weird. Can you specify "strangely"? How come we didn't have such problems in the past? -- Jan > Modified Files: > exif-entry.c exif-tag.c > Log Message: > GNU gettext behaves strangely when given an empty string, so make sure > not to do that. > > > Index: exif-tag.c > > if (ifd >= EXIF_IFD_COUNT) return NULL; > for (i = 0; ExifTagTable[i].description; i++) > - if ((ExifTagTable[i].tag == tag) && RECORDED) break; > - return _(ExifTagTable[i].description); > + if ((ExifTagTable[i].tag == tag) && RECORDED) { > + /* GNU gettext acts strangely when given an empty string */ > + if (!*ExifTagTable[i].description) > + return ""; > + return _(ExifTagTable[i].description); > + } > + return NULL; > } |