Skip to content

Render wrong text in bat #3254

Open
Open
@eatradish

Description

@eatradish

What steps will reproduce the bug?

75159-ghostty-1.1.3-amd64-Ricks-Ryzen-Box-2025-04-01-11:25:31.txt

  1. Download file
  2. Run bat 75159-ghostty-1.1.3-amd64-Ricks-Ryzen-Box-2025-04-01-11\:25\:31.txt
  3. Press ^G to end of file
  4. Press more than once PgUp will:

Image

How did you install bat?

from AOSC OS:

sudo oma install bat


bat version and environment

dpkg -s bat :

saki@MagMilk [ ghostty@main ] $ dpkg -s bat
Package: bat
Status: install ok installed
Section: utils
Installed-Size: 6212
Maintainer: AOSC OS Maintainers <[email protected]>
Architecture: amd64
Version: 0.25.0
Description: cat(1) clone with syntax highlighting and git integration
Description-md5: 3cefd63f1b27e2b7ce962b1f8c066495
X-AOSC-ACBS-Version: 20241103
X-AOSC-Commit: c80f418e4e
X-AOSC-Packager: AOSC OS Maintainers <[email protected]>
X-AOSC-Autobuild4-Version: 4.7.6
saki@MagMilk [ ghostty@main ] $ bat --version
bat 0.25.0

Software version

bat 0.25.0

Operating system

Linux 6.13.3-aosc-main

Command-line

bat --diagnostic

Environment variables

BAT_CACHE_PATH=<not set>
BAT_CONFIG_PATH=<not set>
BAT_OPTS=<not set>
BAT_PAGER=<not set>
BAT_PAGING=<not set>
BAT_STYLE=<not set>
BAT_TABS=<not set>
BAT_THEME=<not set>
COLORTERM=truecolor
LANG=zh_CN.UTF-8
LC_ALL=<not set>
LESS=<not set>
MANPAGER=<not set>
NO_COLOR=<not set>
PAGER=<not set>
SHELL=/bin/bash
TERM=xterm-256color
XDG_CACHE_HOME=<not set>
XDG_CONFIG_HOME=<not set>

System Config file

Could not read contents of '/etc/bat/config': No such file or directory (os error 2).

Config file

Could not read contents of '/home/saki/.config/bat/config': No such file or directory (os error 2).

Custom assets metadata

Could not read contents of '/home/saki/.cache/bat/metadata.yaml': No such file or directory (os error 2).

Custom assets

'/home/saki/.cache/bat' not found

Compile time information

  • Profile: release
  • Target triple: x86_64-unknown-linux-gnu
  • Family: unix
  • OS: linux
  • Architecture: x86_64
  • Pointer width: 64
  • Endian: little
  • CPU features: fxsr,sse,sse2
  • Host: x86_64-unknown-linux-gnu

Less version

> less --version
less 661 (PCRE2 regular expressions)
Copyright (C) 1984-2024  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: https://greenwoodsoftware.com/less

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions