Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A7B2F200C59 for ; Mon, 17 Apr 2017 17:21:47 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A6553160BAB; Mon, 17 Apr 2017 15:21:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id ED15E160B9C for ; Mon, 17 Apr 2017 17:21:46 +0200 (CEST) Received: (qmail 62280 invoked by uid 500); 17 Apr 2017 15:21:46 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 62269 invoked by uid 99); 17 Apr 2017 15:21:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2017 15:21:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 99D6E18E980 for ; Mon, 17 Apr 2017 15:21:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id RconbONL2V7W for ; Mon, 17 Apr 2017 15:21:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id CE59D5F4EE for ; Mon, 17 Apr 2017 15:21:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0EB86E087E for ; Mon, 17 Apr 2017 15:21:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AE77221B48 for ; Mon, 17 Apr 2017 15:21:41 +0000 (UTC) Date: Mon, 17 Apr 2017 15:21:41 +0000 (UTC) From: "Michael Osipov (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MDEP-562) Make exteneded tokens default for displaying trees MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 17 Apr 2017 15:21:47 -0000 [ https://issues.apache.org/jira/browse/MDEP-562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15971143#comment-15971143 ] Michael Osipov commented on MDEP-562: ------------------------------------- What could be done is to remove the default value and calculate the value if none was passed based in locale and OS. I have checked the C source code of |{{tree(1)|http://mama.indstate.edu/users/ice/tree/]: {code:c} struct linedraw { const char **name, *vert, *vert_left, *corner, *copy; }; static const struct linedraw cstable[]={ { latin1_3, "| ", "|--", "·--", "©" }, { iso8859_789, "| ", "|--", "·--", "(c)" }, { shift_jis, "\204\240 ", "\204\245", "\204\244", "(c)" }, { euc_jp, "\250\242 ", "\250\247", "\250\246", "(c)" }, { euc_kr, "\246\242 ", "\246\247", "\246\246", "(c)" }, { iso2022jp, "\033$B(\"\033(B ", "\033$B('\033(B", "\033$B(&\033(B", "(c)" }, { ibm_pc, "\263 ", "\303\304\304", "\300\304\304", "(c)" }, { ibm_ps2, "\263 ", "\303\304\304", "\300\304\304", "\227" }, { ibm_gr, "\263 ", "\303\304\304", "\300\304\304", "\270" }, { gb, "\251\246 ", "\251\300", "\251\270", "(c)" }, { utf8, "\342\224\202\302\240\302\240", "\342\224\234\342\224\200\342\224\200", "\342\224\224\342\224\200\342\224\200", "\302\251" }, { big5, "\242x ", "\242u", "\242|", "(c)" }, { viscii, "| ", "|--", "`--", "\371" }, { koi8ru, "\201 ", "\206\200\200", "\204\200\200", "\277" }, { windows, "| ", "|--", "`--", "\251" }, { NULL, "| ", "|--", "`--", "(c)" } }; {code} Here we have raw bytes. [~keirlawson], can you check the bytes with the codepoints you have provided. If all is well, we can try to remove the default param and check like the command does: {code:c} setlocale(LC_CTYPE, ""); setlocale(LC_COLLATE, ""); charset = getcharset(); if (charset == NULL && strcmp(nl_langinfo(CODESET), "UTF-8") == 0) { charset = "UTF-8"; } {code} If this will works on {{sh}}, {{csh}}, {{bash}} with (non) UTF-8 locale on Linux, BSD and Windows 7, 10. We can have the improvement here. [~hboutemy], any objections? > Make exteneded tokens default for displaying trees > -------------------------------------------------- > > Key: MDEP-562 > URL: https://issues.apache.org/jira/browse/MDEP-562 > Project: Maven Dependency Plugin > Issue Type: Wish > Components: tree > Affects Versions: 3.0.0 > Reporter: Keir > > Now that MSHARED-615 has been merged I would like to propose that this be made the default behavior. By this point most developers have unicode-compatible terminals and given the extended characters make the tree more readable it would be nice to have this as the default option. -- This message was sent by Atlassian JIRA (v6.3.15#6346)