On 1/2/07, Junio C Hamano <junkio@cox.net> wrote: > > > And Marco has to fix the header parsing anyway. > > No question about that. If iconv() punts, qgit will see > "encoding" header to deal with even when the re-coding is in > effect. I think it may be a sensible thing for qgit to replace > the log message and show "log message in this encoding, which > cannot be shown in this window" instead in such a case, but that > is up to Porcelain. > Yes, git-rev-list output is stored in memory as a big chunk of row bytes, conversion to utf8 (the internal format used by Qt string class) is done _only_ for displayed items, just before to show them to user so is not performance critical. I agree with Junio, that info could be used to teach Qt string conversion function how to handle the data. Something like: convertWithCodec(const char* data, codec* codecName) So perhaps if Qt is better then iconv we could display a good log message anyway. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Wed Jan 03 09:30:22 2007
This archive was generated by hypermail 2.1.8 : 2007-01-03 09:36:29 EST