The dos2unix in Red Hat Enterprise Linux 8 converts character '0x0000' of UTF-16LE file to null char.

Solution Verified - Updated -

Issue

  • When using the dos2unix to convert a file exported from a SQL database, the output generated in RHEL7 is different with the one generated in RHEL8. Additional null chars 0x00 are found in the RHEL8's result.

Environment

  • Red Hat Enterprise Linux 8
  • component
    • dos2unix

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content