From: Junichi Uekawa Subject: Git merge conflicts and encoding of logs Date: Tue, 23 Dec 2008 13:48:44 +0900 Message-ID: <87lju7h4yb.dancerj%dancer@netfort.gr.jp> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Tue Dec 23 05:56:46 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1LEzK2-0004uD-CH for gcvg-git-2@gmane.org; Tue, 23 Dec 2008 05:56:46 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754682AbYLWEz2 (ORCPT ); Mon, 22 Dec 2008 23:55:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754654AbYLWEz2 (ORCPT ); Mon, 22 Dec 2008 23:55:28 -0500 Received: from aegis.netfort.gr.jp ([219.94.144.215]:43038 "HELO aegis.netfort.gr.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754638AbYLWEz1 (ORCPT ); Mon, 22 Dec 2008 23:55:27 -0500 X-Greylist: delayed 398 seconds by postgrey-1.27 at vger.kernel.org; Mon, 22 Dec 2008 23:55:26 EST Received: (qmail 16880 invoked by uid 0); 23 Dec 2008 04:48:44 -0000 Received: from unknown (HELO core2duo.dancer.pr.jp.netfort.gr.jp) (127.0.0.1) by aegis.netfort.gr.jp with SMTP; 23 Dec 2008 04:48:44 -0000 User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.2 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Hi, Git merge conflict will insert '<<< first line of commit log message' '===' '>>>' markers to the text file that is causing a conflict. Unfortunately, the encoding of the text file may be different from the log message encoding, and that results in a file which has a mixed encoding (which is pretty hard to edit from any editor BTW). My use case is editing platex files (iso-2022-jp encoded) with log messages of utf-8. http://git.debian.org/?p=tokyodebian/monthly-report.git;a=summary ... Thinking about it, it's probably the same encoding problem as git blame. Is there already a good way to fix this or is this something that needs fixing? regards, junichi -- dancer@{netfort.gr.jp,debian.org}