{"thread":{"id":"2738","subject":"gitk does not recognizes ISO-8859-15","startedAt":"2005-12-03T16:24:24Z","lastAt":"2005-12-03T19:23:39Z","messageCount":3,"participants":["Marco Costalba","Junio C Hamano","H. Peter Anvin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"13145","messageId":"4391C6B8.7010507@yahoo.it","threadId":"2738","inReplyTo":null,"subject":"gitk does not recognizes ISO-8859-15","fromName":"Marco Costalba","fromEmail":"mcostalba@yahoo.it","sentAt":"2005-12-03T16:24:24Z","receivedAt":"2005-12-03T16:24:24Z","isPatch":false,"sender":{"key":"mcostalba@gmail.com","avatar":null},"body":"Cannot use ISO-8859-15 according to IANA character-sets encoding file\n(http://www.iana.org/assignments/character-sets):\n\n\n[marco@costalba git]$ git-repo-config i18n.commitencoding ISO-8859-15\n[marco@costalba git]$ gitk\nError in startup script: unknown encoding \"ISO-8859-15\"\n     while executing\n\"fconfigure $commfd -blocking 0 -translation lf -encoding $gitencoding\"\n     (procedure \"getcommits\" line 34)\n     invoked from within\n\"getcommits $revtreeargs\"\n     (file \"/home/marco/bin/gitk\" line 3743)\n[marco@costalba git]$ git-repo-config i18n.commitencoding ISO_8859-15\n[marco@costalba git]$ gitk\nError in startup script: unknown encoding \"ISO_8859-15\"\n     while executing\n\"fconfigure $commfd -blocking 0 -translation lf -encoding $gitencoding\"\n     (procedure \"getcommits\" line 34)\n     invoked from within\n\"getcommits $revtreeargs\"\n     (file \"/home/marco/bin/gitk\" line 3743)\n\n\nFinally, after some trials, I found the Tcl/Tk recognized name is \"iso8859-15\".\nThis does not seems a standard name and worst ;-)  it is different from the Qt \ninternal name \"ISO8859-15\".\n\nI would like to use the qgit text codec selector to save the encoding in the \nrepository config file (using git-repo-config i18n.commitencoding). But to do \nthis I must do not break gitk.\n\nQt can reconize IANA names and also the following \"internal\" names (only the \nfirst part, before \" --\") that user can choose with codec selector combobox:\n\n  Latin1\n  Big5 -- Chinese\n  Big5-HKSCS -- Chinese\n  eucJP -- Japanese\n  eucKR -- Korean\n  GB2312 -- Chinese\n  GBK -- Chinese\n  GB18030 -- Chinese\n  JIS7 -- Japanese\n  Shift-JIS -- Japanese\n  TSCII -- Tamil\n  utf8 -- Unicode, 8-bit\n  utf16 -- Unicode\n  KOI8-R -- Russian\n  KOI8-U -- Ukrainian\n  ISO8859-1 -- Western\n  ISO8859-2 -- Central European\n  ISO8859-3 -- Central European\n  ISO8859-4 -- Baltic\n  ISO8859-5 -- Cyrillic\n  ISO8859-6 -- Arabic\n  ISO8859-7 -- Greek\n  ISO8859-8 -- Hebrew, visually ordered\n  ISO8859-8-i -- Hebrew, logically ordered\n  ISO8859-9 -- Turkish\n  ISO8859-10\n  ISO8859-13\n  ISO8859-14\n  ISO8859-15 -- Western\n  IBM 850\n  IBM 866\n  CP874\n  CP1250 -- Central European\n  CP1251 -- Cyrillic\n  CP1252 -- Western\n  CP1253 -- Greek\n  CP1254 -- Turkish\n  CP1255 -- Hebrew\n  CP1256 -- Arabic\n  CP1257 -- Baltic\n  CP1258\n  Apple Roman\n  TIS-620 -- Thai\n\n\nSo here we arrive. I see two ways to deal with this:\n\n1) *solution* make gitk use IANA names\n\n2) *workaround* get from somewhere the list of Tcl/Tk recognized codec names and \nteach qgit to do the map from IANA when setting a codec with \"git-repo-config \ni18n.commitencoding\"\n\n\nIn both cases I need your help ;-)\n\nThanks\nMarco\n\n\t\n\n\t\n\t\t\n___________________________________ \nYahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB \nhttp://mail.yahoo.it\n"},{"id":"13146","messageId":"7v4q5qyp5p.fsf@assigned-by-dhcp.cox.net","threadId":"2738","inReplyTo":"4391C6B8.7010507@yahoo.it","subject":"Re: gitk does not recognizes ISO-8859-15","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-12-03T19:08:18Z","receivedAt":"2005-12-03T19:08:18Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Marco Costalba <mcostalba@yahoo.it> writes:\n\n> So here we arrive. I see two ways to deal with this:\n>\n> 1) *solution* make gitk use IANA names\n>\n> 2) *workaround* get from somewhere the list of Tcl/Tk recognized codec names and \n> teach qgit to do the map from IANA when setting a codec with \"git-repo-config \n> i18n.commitencoding\"\n\nThe intent of i18n.commitencoding is to have something that is\nunderstood by iconv there, so if gitk does not work with these\nthings spelled like. ISO8859-1 or ISO-8859-15, and qgit is happy\nwith them, I would say that we should fix gitk, which means\n*workaround* should be on the tcl/tk side.\n\nTcl/Tk expert may have more thoughts (and I suspect experiences)\non this, but I am not one of them.\n"},{"id":"13151","messageId":"4391F0BB.7000800@zytor.com","threadId":"2738","inReplyTo":"7v4q5qyp5p.fsf@assigned-by-dhcp.cox.net","subject":"Re: gitk does not recognizes ISO-8859-15","fromName":"H. Peter Anvin","fromEmail":"hpa@zytor.com","sentAt":"2005-12-03T19:23:39Z","receivedAt":"2005-12-03T19:23:39Z","isPatch":false,"sender":{"key":"hpa@zytor.com","avatar":null},"body":"Junio C Hamano wrote:\n> Marco Costalba <mcostalba@yahoo.it> writes:\n> \n> \n>>So here we arrive. I see two ways to deal with this:\n>>\n>>1) *solution* make gitk use IANA names\n>>\n>>2) *workaround* get from somewhere the list of Tcl/Tk recognized codec names and \n>>teach qgit to do the map from IANA when setting a codec with \"git-repo-config \n>>i18n.commitencoding\"\n> \n> \n> The intent of i18n.commitencoding is to have something that is\n> understood by iconv there, so if gitk does not work with these\n> things spelled like. ISO8859-1 or ISO-8859-15, and qgit is happy\n> with them, I would say that we should fix gitk, which means\n> *workaround* should be on the tcl/tk side.\n> \n> Tcl/Tk expert may have more thoughts (and I suspect experiences)\n> on this, but I am not one of them.\n> \n\nI would say that the only sustainable ruleset is to use IANA rules for \ncharacter name resolutions, if multiple tools are to be able to use them.\n\n\t-hpa\n"}]}