Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch fix DMOTD_FANCY locale gate to default permissive in 140.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 20, 2026.

  1. eva2000

    eva2000 Administrator Staff Member

    58,892
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:41 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    fix DMOTD_FANCY locale gate to default permissive in 140.00beta01

    Action 2a (CX1) was over-strict: when the user's inbound SSH session
    has no LANG/LC_ALL/LC_CTYPE forwarded (PuTTY default, minimal
    sshd_config without AcceptEnv LANG LC_*, cron-shelled SSH,
    systemd-spawned shells), all three captured locale vars are empty,
    the for-loop never enters its [ -n "$_v" ] branch, and _locale_ok
    stays at the 'n' default — silently rejecting fancy mode even when
    the terminal can render UTF-8.


    Flip the locale-check default from 'n' to 'y' (permissive). Modern
    terminal emulators universally support UTF-8, so absent locale
    information should NOT reject fancy mode. Only reject when an
    inbound locale var is explicitly non-UTF-8 (LC_ALL=C, LC_ALL=POSIX,
    LANG=en_US.iso88591, etc.) — the original CX1 design intent.

    Single-character change ('n' → 'y') plus an updated comment block
    explaining the rationale.

    Continue reading...

    140.00beta01 branch