basename() is locale dependent so before it we must setlocale for special strings.
Steps to reproduce: 1. Edit
change in file include/config_default.inc.php line 743
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-.]+$/';
to
$conf['sync_chars_regex'] = '/^[a-zA-Z??ó????????Ó??????0-9-. (),%+-~#@!*]+$/';
2. Create dir:
mkdir /PATH/TO/PIWIGO/galleries/?uk /PATH/TO/PIWIGO/galleries/luk /PATH/TO/PIWIGO/galleries/ku?
3. Synchronize.
Now You can see following albums in piwigo: uk luk ku?
So it ignores special characters in first positions.
The problem is in admin/site_update.php line 210.
To solve it you must add one line before it, for my language it is:
**Reported by gospogied on 2 Oct 2012 07:29**
**Version:** 2.4.4
basename() is locale dependent so before it we must setlocale for special strings.
**Steps to reproduce:** 1. Edit
change in file include/config_default.inc.php line 743
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-_.]+$/';
to
$conf['sync_chars_regex'] = '/^[a-zA-Z??ó????????Ó??????0-9-_. (),%+-~#@!*]+$/';
2. Create dir:
mkdir /PATH/TO/PIWIGO/galleries/?uk /PATH/TO/PIWIGO/galleries/luk /PATH/TO/PIWIGO/galleries/ku?
3. Synchronize.
Now You can see following albums in piwigo: uk luk ku?
So it ignores special characters in first positions.
The problem is in admin/site_update.php line 210.
To solve it you must add one line before it, for my language it is:
setlocale(LC_ALL, 'pl_PL.UTF-8');
$dir = basename($fulldir);
**Additional information:** Fixed by hand, but should be automated and probably basenames in other places also should be setlocaled first.
[Piwigo Bugtracker #2758](http://piwigo.org/bugs/view.php?id=2758)
<!-- github-sync-id:97226453 -->
It seems that bugtracker doesn't like locales, according to ????
**Comment posted by gospogied on 2 Oct 2012 08:15**
It seems that bugtracker doesn't like locales, according to ????
<!-- github-comment-id:124892841 -->
**Comment posted by m_alien on 31 Oct 2014 07:41**
in piwigo 2.7.1 same broblem, and the same solution:
The problem is in admin/site_update.php line 210.
To solve it you must add one line before it, for my language it is:
setlocale(LC_ALL, 'ru_RU.UTF-8');
$dir = basename($fulldir);
and in i.php I add
setlocale(LC_ALL, 'ru_RU.UTF-8');
<!-- github-comment-id:124892854 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Reported by gospogied on 2 Oct 2012 07:29
Version: 2.4.4
basename() is locale dependent so before it we must setlocale for special strings.
Steps to reproduce: 1. Edit
change in file include/config_default.inc.php line 743
$conf['sync_chars_regex'] = '/^[a-zA-Z0-9-.]+$/';
to
$conf['sync_chars_regex'] = '/^[a-zA-Z??ó????????Ó??????0-9-. (),%+-~#@!*]+$/';
2. Create dir:
mkdir /PATH/TO/PIWIGO/galleries/?uk /PATH/TO/PIWIGO/galleries/luk /PATH/TO/PIWIGO/galleries/ku?
3. Synchronize.
Now You can see following albums in piwigo: uk luk ku?
So it ignores special characters in first positions.
The problem is in admin/site_update.php line 210.
To solve it you must add one line before it, for my language it is:
setlocale(LC_ALL, 'pl_PL.UTF-8');
$dir = basename($fulldir);
Additional information: Fixed by hand, but should be automated and probably basenames in other places also should be setlocaled first.
Piwigo Bugtracker #2758
Comment posted by gospogied on 2 Oct 2012 08:15
It seems that bugtracker doesn't like locales, according to ????
Comment posted by m_alien on 31 Oct 2014 07:41
in piwigo 2.7.1 same broblem, and the same solution:
The problem is in admin/site_update.php line 210.
To solve it you must add one line before it, for my language it is:
setlocale(LC_ALL, 'ru_RU.UTF-8');
$dir = basename($fulldir);
and in i.php I add
setlocale(LC_ALL, 'ru_RU.UTF-8');