6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
3/29/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14489] HORDE: PHP ERROR: setlocale(): Specified locale name is too long [pid 428 on line 138 of "/usr/share/pear/Horde/Registry/Nlsconfig.php"]
*
Your Email Address
*
Spam protection
Enter the letters below:
. .. ..__.. ,. . | |\ /[__] \./ \ / |__| \/ | | | \/
Comment
> After installing Horde this error is showed in logs repeatedly. > > Oct 14 01:17:07 user:warning HORDE: HORDE: PHP ERROR: setlocale(): > Specified locale name is too long [pid 428 on line 138 of > "/usr/share/pear/Horde/Registry/Nlsconfig.php"] > Oct 14 01:17:07 user:warning HORDE: HORDE: PHP ERROR: setlocale(): > Specified locale name is too long [pid 428 on line 138 of > "/usr/share/pear/Horde/Registry/Nlsconfig.php"] > Oct 14 01:17:07 user:warning HORDE: HORDE: PHP ERROR: setlocale(): > Specified locale name is too long [pid 428 on line 138 of > "/usr/share/pear/Horde/Registry/Nlsconfig.php"] > > Nlsconfig.php: > if (setlocale(LC_ALL, $lang . '.UTF-8')) { > $valid = true; > } > setlocale(LC_ALL, $locale); <---- error here > > > The problem is related to a limit of 255 in string.c in php code. > Current locale in this machine is: > # locale > LANG=en_US.UTF-8 > LC_CTYPE="en_US.UTF-8" > LC_NUMERIC="en_US.UTF-8" > LC_TIME="en_US.UTF-8" > LC_COLLATE="en_US.UTF-8" > LC_MONETARY="en_US.UTF-8" > LC_MESSAGES="en_US.UTF-8" > LC_PAPER="en_US.UTF-8" > LC_NAME="en_US.UTF-8" > LC_ADDRESS="en_US.UTF-8" > LC_TELEPHONE="en_US.UTF-8" > LC_MEASUREMENT="en_US.UTF-8" > LC_IDENTIFICATION="en_US.UTF-8" > LC_ALL= > > This is 255+. > > Here there is a complete description of the problem with a possible > workaround passing an array insted of a string: > http://stackoverflow.com/questions/16110866/why-do-i-get-this-php-warning-setlocale-specified-locale-name-is-too-long >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers