Making WordPress.org

Changeset 11947


Ignore:
Timestamp:
07/07/2022 06:26:40 AM (3 years ago)
Author:
dd32
Message:

Theme Directory: SVN: When executing SVN commands, force the locale to utf8 to allow for accented characters within commit messages.

See https://wordpress.slack.com/archives/C02RP4Y3K/p1653318876957769

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/theme-directory/lib/class-exec-with-logging.php

    r11299 r11947  
    1010
    1111    /**
    12      * Execute a shell process, same behaviour as `exec()` but with PHP Warnings/Notices generated on errors.
     12     * Execute a shell process, same behavior as `exec()` but with PHP Warnings/Notices generated on errors.
     13     *
     14     * The en_US.UTF-8 locale is forced to allow for commit messages to contain UTF8 characters.
    1315     *
    1416     * @param string $command      Command to execute. Escape it.
     
    2628                2 => [ 'pipe', 'w' ], // STDERR
    2729            ],
    28             $pipes
     30            $pipes,
     31            null,
     32            [
     33                'LANG'     => 'en_US.UTF-8',
     34                'LC_CTYPE' => 'en_US.UTF-8',
     35            ]
    2936        );
    3037
Note: See TracChangeset for help on using the changeset viewer.