Skip to content

BOM seems to confuse CS-Script #389

@UweKeim

Description

@UweKeim

Having a "do-build-all.cs" file that starts like this:

//css_import ../_References/Submodules/zeta-shared-ci-assets/DevelopmentTools/CentralScripts/Afx.cs;

using ZetaSoftware.CentralScripts;

...

I've run it with version 4.8.18 of CS-Script but it always complained that "ZetaSoftware.CentralScripts" was unknown.

In fact I could even write gibberish in the very first line for the file path within the //css_import directive. No error that it cannot find the file, no nothing.

Out of ideas I converted the file from UTF-8 with BOM to UTF-8 without BOM. (BOM = Byte Order Mark).

Et voilà! It is working now.

Tried it multiple times by converting back and forth and it always behaves the same. As soon as there is a BOM, it does skip the //css_import directive.

Even adding a comment before as the very first line does not improve the behaviour.

My question

Could you please make CS-Script work with UTF-8 BOM files? 😊

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions