lördag 13 december 2008 12:02:07 skrev Robin Rosenberg: > lördag 13 december 2008 03:42:26 skrev Shawn O. Pearce: > > The conversion from byte[] to String is performed one line at a time, > > in case the patch is a character encoding conversion patch for the > > file. For simplicity we currently assume UTF-8 still as the default > > encoding for any content, but eventually we should support using the > > .gitattributes encoding property when performing this conversion. > > For usefulness we must be able to pass the encoding from outside, > e.g. the encoding Eclipse uses, which often is not UTF-8- It's even worse. You should probably do the encoding guess on the whole patch, or per file and not per line so make success possible at all. Reading and writing as ISO-8859-1 will always work as that is just padding every byte with NUL on reading and dropping it on writing. I.e. if your convert to char at all... -- robin -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html