Changeset 3665


Ignore:
Timestamp:
Feb 28, 2025, 11:36:11 AM (4 months ago)
Author:
jbclement
Message:

COMMON:
Remove carriage return characters from the diff command to prevent formatting issues in "version_diff.txt".
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r3598 r3665  
    609609
    610610# Function to process problematic characters
    611 #     Delete invalid character due to encoding format
     611#     Convert input to UTF-8 and ignore invalid characters
     612#     Remove carriage return characters to prevent formatting issues
    612613#     Escape backslashes and single quotes
    613614clean_output() {
    614615    iconv -f "$(locale charmap)" -t UTF-8//IGNORE \
     616        | tr -d '\r' \
    615617        | sed 's/\\/\\\\/g; s/'\''/'\'\''/g'
    616618}
Note: See TracChangeset for help on using the changeset viewer.