Giter Site home page Giter Site logo

Comments (4)

einfachIrgendwer0815 avatar einfachIrgendwer0815 commented on May 18, 2024 1

Does the file contain any null bytes in the first 1024 bytes?

from bat.

fanyx-ok avatar fanyx-ok commented on May 18, 2024

Does the file contain any null bytes in the first 1024 bytes?

I use xxd print the file. Does the last byte in the first line 00 means a null byte?

00000000: 5b31 303a 3130 3a30 302e 3132 305d 2000       [10:10:00.120] .
00000010: 0a5b 3130 3a31 303a 3030 2e31 3939 5d20        .[10:10:00.199]

from bat.

einfachIrgendwer0815 avatar einfachIrgendwer0815 commented on May 18, 2024

I use xxd print the file. Does the last byte in the first line 00 means a null byte?

Yes, it does.

Bat considers files that have a null byte in their first 1024 bytes to be a binary file. However, you can use the following as a workaround:

bat --show-all <FILE>

from bat.

fanyx-ok avatar fanyx-ok commented on May 18, 2024

@einfachIrgendwer0815 It works. Thank you!
You can close this issue. My problem was solved.

from bat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.