Making WordPress.org

Changeset 3214


Ignore:
Timestamp:
05/23/2016 05:39:28 AM (7 years ago)
Author:
dd32
Message:

Plugin Directory: When executing SVN functions, execute them with a UTF-8 language locale set, this allows for plugins with non-ascii filenames to be operated upon.

See #1578

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/tools/class-svn.php

    r3082 r3214  
    3333        $esc_url  = escapeshellarg( $url );
    3434
    35         $output = shell_exec( "svn import $esc_options $esc_path $esc_url 2>&1" );
     35        $output = shell_exec( "LC_ALL=C.UTF-8 svn import $esc_options $esc_path $esc_url 2>&1" );
    3636        if ( preg_match( '/Committed revision (?P<revision>\d+)[.]/i', $output, $m ) ) {
    3737            $revision = (int) $m['revision'];
     
    6464        $esc_destination = escapeshellarg( $destination );
    6565
    66         $output = shell_exec( "svn export $esc_options $esc_url $esc_destination 2>&1" );
     66        $output = shell_exec( "LC_ALL=C.UTF-8 svn export $esc_options $esc_url $esc_destination 2>&1" );
    6767        if ( preg_match( '/Exported revision (?P<revision>\d+)[.]/i', $output, $m ) ) {
    6868            $revision = (int) $m['revision'];
     
    9494        $esc_url = escapeshellarg( $url );
    9595
    96         $output = shell_exec( "svn ls $esc_options $esc_url 2>&1" );
     96        $output = shell_exec( "LC_ALL=C.UTF-8 svn ls $esc_options $esc_url 2>&1" );
    9797
    9898        $errors = self::parse_svn_errors( $output );
Note: See TracChangeset for help on using the changeset viewer.