From nobody Tue Oct 01 14:03:49 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XJ06G28zgz5XtTq for ; Tue, 01 Oct 2024 14:03:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XJ06G0Xwtz43XY for ; Tue, 1 Oct 2024 14:03:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727791430; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ddZEfQGAMOSCEsuQ3zYgBXyR3Tm6W0Mn7ZMJ0pfdgxw=; b=o/qObtDU66muO+mT+UYJc6Sl3ZaI32LACf+XqeALlyPyuA4X5yJTuKeY5C256/3/lbmxCd kimXaYV33gjRDDipaBjtqoCxhEuvUqM0mssLisrYbP8Ujz0xw6ZUTFMUgWqWGegO3gcPbe 1gKCwPIWasYbH2WA7Z9nhEutxyFOFfInMj4mddc26Neak6w67TbTCY5e5UROr4Fm0uqm6W MptX9TdbgpOOWO2zd3I/G041ngepornZMOhF7/QMuwT7Ae8wJn+Q5AJk/5LyQaMT86Lyip z9HzFU05Bkx8XmZeYu161xMTja/CVYqAwz8jZrI9NjJzKvFQGCTmiXGJqkbhbw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727791430; a=rsa-sha256; cv=none; b=UB4iio1r1vjUr2HNsyRSIMUhRw+I8YKLKLWw8IqFkQh3G7h6K7xm0G/DyPO9fLQlN38Q6P fzEYG8RiSuxEWt0oeqeIdnAFQ/+VrnniptsOcJOEYY6kpTS4CBocAIo861WDazlXGkfF/v ipF5b9U7avZE3FAKYugH6uQQEgTiupw69vQ6P97liqjRuhlEv2fU9vikSA97wFSgEjblpG 7WgN+3q6aGnTDi5cMMT+MdvOk76lHFobWM1v6uLFfbNg3VB1h6IGPEBrRAFA2e6a0HVC2d fxPHVcUewd76YOKieAfH9aIUOH9QZKOiHqmS173crcUuDAWilOIsVQ3E82ttPg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XJ06G06vzzgLT for ; Tue, 1 Oct 2024 14:03:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 491E3nXo087595 for ; Tue, 1 Oct 2024 14:03:49 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 491E3nln087594 for bugs@FreeBSD.org; Tue, 1 Oct 2024 14:03:49 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 281796] /bin/ls doesn't print UTF-8 emojis properly in some cases, but /bin/du does Date: Tue, 01 Oct 2024 14:03:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: henrichhartzer@tuta.io X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281796 Bug ID: 281796 Summary: /bin/ls doesn't print UTF-8 emojis properly in some cases, but /bin/du does Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: henrichhartzer@tuta.io I had some filenames with emojis on my filesystem and noticed an interesting behavior. I noticed that /bin/du will print the filename and size with the emoji, but /bin/ls prints question marks. zsh$ du this-has-an-apple-emoji-$'\360'$'\237'$'\215'$'\216' 0 this-has-an-apple-emoji-=F0=9F=8D=8E zsh$ ls this-has-an-apple-emoji-$'\360'$'\237'$'\215'$'\216' this-has-an-apple-emoji-???? zsh$ du this-has-an-apple-emoji-$'\360'$'\237'$'\215'$'\216' | hexdump -C 00000000 30 09 74 68 69 73 2d 68 61 73 2d 61 6e 2d 61 70 |0.this-has-an-= ap| 00000010 70 6c 65 2d 65 6d 6f 6a 69 2d f0 9f 8d 8e 0a |ple-emoji-....= .| 0000001f zsh$ ls this-has-an-apple-emoji-$'\360'$'\237'$'\215'$'\216' | hexdump -C 00000000 74 68 69 73 2d 68 61 73 2d 61 6e 2d 61 70 70 6c |this-has-an-ap= pl| 00000010 65 2d 65 6d 6f 6a 69 2d f0 9f 8d 8e 0a |e-emoji-.....| 0000001d Although, I think it's more complicated than that. This is my behavior with x11/foot, but not with x11/sterm. This may not be a /bin/ls bug, but seems to be a discrepancy between /bin/ls and /bin/du. I can't immediately tell an obvious difference in the hexdump, so I wonder = if there's some kind of terminal signaling going on or not going on that's changing how it's printed. --=20 You are receiving this mail because: You are the assignee for the bug.=