Skip to content

listxml file encoding different between cmd.exe and Powershell #5694

Open
@darkshade9

Description

@darkshade9

Hi,

Thanks for all the hard work on this project!

I was wrestling with an issue for weeks now and in communication with the creator of LEDBlinky, that LEDBlinky was unable to load clones from the file that listxml creates. He discovered it was due to a file encoding issue.

Sure enough when I checked, sending output to a file via mame64.exe -listxml > mame.xml in cmd.exe produces a ~221MB file of ANSI (listxml.xml: XML 1.0 document, ASCII text, with CRLF line terminators)
Doing the same in Powershell produces a ~442MB file of UTF-16 (pslistxml.xml: XML 1.0 document, Little-endian UTF-16 Unicode text, with CRLF line terminators)

Is this simply due to differences in sending output to a file or does mame64.exe defer to the shell you're in to determine which encoding the file gets?

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation-related issueswontfix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions