Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

en_US_POSIX locale #20999

Closed
jennydaman opened this issue May 16, 2020 · 1 comment · Fixed by #21003
Closed

en_US_POSIX locale #20999

jennydaman opened this issue May 16, 2020 · 1 comment · Fixed by #21003
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@jennydaman
Copy link

"code": "en_US_POSIX",
"name": "English (United States, Computer)"

What is this locale for? en_US_POSIX doesn't seem to be a valid moment.js locale. Moreover, the setting "English (United States, Computer)" causes the web app to be completely inoperable with an "internal server error" on every page. I could only fix this by a manual SQL command:

UPDATE oc_preferences SET configvalue="en_US" WHERE configkey="locale";

server crash log:

Error    PHP                You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at                              2020-05-16T02:53:31+00:00 
/usr/share/webapps/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18                                                                                        

Error    index              Punic\Exception\InvalidLocale: 'en_US_POSIX' is not a valid locale identifier at 3rdparty/punic/punic/code/Data.php line 531                            2020-05-16T02:53:31+00:00 

0. 3rdparty/punic/punic/code/Data.php line 503                                                                                                                                   
Punic\Data::getLocaleAlternatives(                                                                                                                                            

)                                                                                                                                                                             
1. 3rdparty/punic/punic/code/Data.php line 142                                                                                                                                   
Punic\Data::getLocaleFolder(                                                                                                                                                  

)                                                                                                                                                                             
2. 3rdparty/punic/punic/code/Calendar.php line 743                                                                                                                               
Punic\Data::get(                                                                                                                                                              

)                                                                                                                                                                             
3. lib/private/L10N/L10N.php line 175                                                                                                                                            
Punic\Calendar::getDateFormat(                                                                                                                                                

)                                                                                                                                                                             
4. lib/private/L10N/LazyL10N.php line 61                                                                                                                                         
OC\L10N\L10N->l(                                                                                                                                                              

)                                                                                                                                                                             
5. lib/private/Template/JSConfigHelper.php line 186                                                                                                                              
OC\L10N\LazyL10N->l(                                                                                                                                                          

)                                                                                                                                                                             
6. lib/private/TemplateLayout.php line 190                                                                                                                                       
OC\Template\JSConfigHelper->getConfig(                                                                                                                                        

)                                                                                                                                                                             
7. lib/private/legacy/template.php line 184                                                                                                                                      
OC\TemplateLayout->__construct(                                                                                                                                               

)                                                                                                                                                                             
8. lib/public/AppFramework/Http/TemplateResponse.php line 167                                                                                                                    
OC_Template->fetchPage(                                                                                                                                                       

)                                                                                                                                                                             
9. lib/private/AppFramework/Http/Dispatcher.php line 123                                                                                                                         
OCP\AppFramework\Http\TemplateResponse->render(                                                                                                                               

)                                                                                                                                                                             
10. lib/private/AppFramework/App.php line 125                                                                                                                                     
OC\AppFramework\Http\Dispatcher->dispatch(                                                                                                                                    

)                                                                                                                                                                             
11. lib/private/AppFramework/Routing/RouteActionHandler.php line 47                                                                                                               
OC\AppFramework\App::main(                                                                                                                                                    

)                                                                                                                                                                             
12. <<closure>>                                                                                                                                                                   
OC\AppFramework\Routing\RouteActionHandler->__invoke(                                                                                                                         

)                                                                                                                                                                             
13. lib/private/Route/Router.php line 299                                                                                                                                         
call_user_func(                                                                                                                                                               

)                                                                                                                                                                             
14. lib/base.php line 1008                                                                                                                                                        
OC\Route\Router->match(                                                                                                                                                       

)                                                                                                                                                                             
15. index.php line 38                                                                                                                                                             
OC::handleRequest(                                                                                                                                                            

)                                                                                                                                                                             

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69                                             2020-05-16T02:53:31+00:00 

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69                    2020-05-16T02:53:31+00:00 

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#60                                             2020-05-16T02:53:31+00:00 

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#58                    2020-05-16T02:53:31+00:00 

Error    PHP                Undefined index: args at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#58                                                           2020-05-16T02:53:31+00:00 

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69                                             2020-05-16T02:53:31+00:00 

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69                    2020-05-16T02:53:31+00:00 

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#60                                             2020-05-16T02:53:31+00:00 

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#58                    2020-05-16T02:53:31+00:00 

Error    PHP                Undefined index: args at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#58                                                           2020-05-16T02:53:31+00:00 

Error    PHP                You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at                              2020-05-16T02:53:32+00:00 
/usr/share/webapps/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18                                                                                        

Error    PHP                You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at                              2020-05-16T02:53:32+00:00 
/usr/share/webapps/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18                                                                                        

Error    PHP                You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at                              2020-05-16T02:53:32+00:00 
/usr/share/webapps/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18                                                                                        

Error    index              Punic\Exception\InvalidLocale: 'en_US_POSIX' is not a valid locale identifier at 3rdparty/punic/punic/code/Data.php line 531                            2020-05-16T02:53:32+00:00 

0. 3rdparty/punic/punic/code/Data.php line 503                                                                                                                                   
Punic\Data::getLocaleAlternatives(                                                                                                                                            

)                                                                                                                                                                             
1. 3rdparty/punic/punic/code/Data.php line 142                                                                                                                                   
Punic\Data::getLocaleFolder(                                                                                                                                                  

)                                                                                                                                                                             
2. 3rdparty/punic/punic/code/Calendar.php line 743                                                                                                                               
Punic\Data::get(                                                                                                                                                              

)                                                                                                                                                                             
3. lib/private/L10N/L10N.php line 175                                                                                                                                            
Punic\Calendar::getDateFormat(                                                                                                                                                

)                                                                                                                                                                             
4. lib/private/L10N/LazyL10N.php line 61                                                                                                                                         
OC\L10N\L10N->l(                                                                                                                                                              

)                                                                                                                                                                             
5. lib/private/Template/JSConfigHelper.php line 186                                                                                                                              
OC\L10N\LazyL10N->l(                                                                                                                                                          

)                                                                                                                                                                             
6. lib/private/TemplateLayout.php line 190                                                                                                                                       
OC\Template\JSConfigHelper->getConfig(                                                                                                                                        

)                                                                                                                                                                             
7. lib/private/legacy/template.php line 184                                                                                                                                      
OC\TemplateLayout->__construct(                                                                                                                                               

)                                                                                                                                                                             
8. lib/public/AppFramework/Http/TemplateResponse.php line 167                                                                                                                    
OC_Template->fetchPage(                                                                                                                                                       

)                                                                                                                                                                             
9. lib/private/AppFramework/Http/Dispatcher.php line 123                                                                                                                         
OCP\AppFramework\Http\TemplateResponse->render(                                                                                                                               

)                                                                                                                                                                             
10. lib/private/AppFramework/App.php line 125                                                                                                                                     
OC\AppFramework\Http\Dispatcher->dispatch(                                                                                                                                    

)                                                                                                                                                                             
11. lib/private/AppFramework/Routing/RouteActionHandler.php line 47                                                                                                               
OC\AppFramework\App::main(                                                                                                                                                    

)                                                                                                                                                                             
12. <<closure>>                                                                                                                                                                   
OC\AppFramework\Routing\RouteActionHandler->__invoke(                                                                                                                         

)                                                                                                                                                                             
13. lib/private/Route/Router.php line 299                                                                                                                                         
call_user_func(                                                                                                                                                               

)                                                                                                                                                                             
14. lib/base.php line 1008                                                                                                                                                        
OC\Route\Router->match(                                                                                                                                                       

)                                                                                                                                                                             
15. index.php line 38                                                                                                                                                             
OC::handleRequest(                                                                                                                                                            

)                                                                                                                                                                             

Error    PHP                You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at                              2020-05-16T02:53:32+00:00 
/usr/share/webapps/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18                                                                                        

Error    PHP                You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at                              2020-05-16T02:53:32+00:00 
/usr/share/webapps/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18                                                                                        

Error    PHP                You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at                              2020-05-16T02:53:32+00:00 
/usr/share/webapps/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18                                                                                        

Error    PHP                You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at                              2020-05-16T02:53:32+00:00 
/usr/share/webapps/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18                                                                                        

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69                                             2020-05-16T02:53:32+00:00 

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69                    2020-05-16T02:53:32+00:00 

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#60                                             2020-05-16T02:53:32+00:00 

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#58                    2020-05-16T02:53:32+00:00 

Error    PHP                Undefined index: args at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#58                                                           2020-05-16T02:53:32+00:00 

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69                                             2020-05-16T02:53:32+00:00 

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69                    2020-05-16T02:53:32+00:00 

Error    PHP                You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at                              2020-05-16T02:53:33+00:00 
/usr/share/webapps/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18                                                                                        

Error    PHP                You are using a fallback implementation of the intl extension. Installing the native one is highly recommended instead. at                              2020-05-16T02:53:33+00:00 
/usr/share/webapps/nextcloud/3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/intl.php#18                                                                                        

Error    index              Punic\Exception\InvalidLocale: 'en_US_POSIX' is not a valid locale identifier at 3rdparty/punic/punic/code/Data.php line 531                            2020-05-16T02:53:33+00:00 

0. 3rdparty/punic/punic/code/Data.php line 503                                                                                                                                   
Punic\Data::getLocaleAlternatives(                                                                                                                                            

)                                                                                                                                                                             
1. 3rdparty/punic/punic/code/Data.php line 142                                                                                                                                   
Punic\Data::getLocaleFolder(                                                                                                                                                  

)                                                                                                                                                                             
2. 3rdparty/punic/punic/code/Calendar.php line 743                                                                                                                               
Punic\Data::get(                                                                                                                                                              

)                                                                                                                                                                             
3. lib/private/L10N/L10N.php line 175                                                                                                                                            
Punic\Calendar::getDateFormat(                                                                                                                                                

)                                                                                                                                                                             
4. lib/private/L10N/LazyL10N.php line 61                                                                                                                                         
OC\L10N\L10N->l(                                                                                                                                                              

)                                                                                                                                                                             
5. lib/private/Template/JSConfigHelper.php line 186                                                                                                                              
OC\L10N\LazyL10N->l(                                                                                                                                                          

)                                                                                                                                                                             
6. lib/private/TemplateLayout.php line 190                                                                                                                                       
OC\Template\JSConfigHelper->getConfig(                                                                                                                                        

)                                                                                                                                                                             
7. lib/private/legacy/template.php line 184                                                                                                                                      
OC\TemplateLayout->__construct(                                                                                                                                               

)                                                                                                                                                                             
8. lib/public/AppFramework/Http/TemplateResponse.php line 167                                                                                                                    
OC_Template->fetchPage(                                                                                                                                                       

)                                                                                                                                                                             
9. lib/private/AppFramework/Http/Dispatcher.php line 123                                                                                                                         
OCP\AppFramework\Http\TemplateResponse->render(                                                                                                                               

)                                                                                                                                                                             
10. lib/private/AppFramework/App.php line 125                                                                                                                                     
OC\AppFramework\Http\Dispatcher->dispatch(                                                                                                                                    

)                                                                                                                                                                             
11. lib/private/AppFramework/Routing/RouteActionHandler.php line 47                                                                                                               
OC\AppFramework\App::main(                                                                                                                                                    

)                                                                                                                                                                             
12. <<closure>>                                                                                                                                                                   
OC\AppFramework\Routing\RouteActionHandler->__invoke(                                                                                                                         

)                                                                                                                                                                             
13. lib/private/Route/Router.php line 299                                                                                                                                         
call_user_func(                                                                                                                                                               

)                                                                                                                                                                             
14. lib/base.php line 1008                                                                                                                                                        
OC\Route\Router->match(                                                                                                                                                       

)                                                                                                                                                                             
15. index.php line 38                                                                                                                                                             
OC::handleRequest(                                                                                                                                                            

)                                                                                                                                                                             

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69                                             2020-05-16T02:53:33+00:00 

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69                    2020-05-16T02:53:33+00:00 

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/shar

Error    PHP                Undefined index: args at /usr/share/webapps/nextcloud/apps/logreader/lib/

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/shar

Error    PHP                implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/

Error    PHP                array_map(): Expected parameter 2 to be an array, null given at /usr/shar

Error    PHP                Undefined index: args at /usr/share/webapps/nextcloud/apps/logreader/lib/

related issue: #1781

All I want is simply YYYY-MM-DD HH:MM:SS :disappointed:

kesselb added a commit that referenced this issue May 16, 2020
As reported at #20999 the list contains en_US_POSIX as locale but punic is unable to parse such a locale. If you select that locale everyone is confused.

Signed-off-by: Daniel Kesselberg <[email protected]>
@kesselb
Copy link
Contributor

kesselb commented May 16, 2020

Thanks for reporting 👍

I sent a patch to remove the locale from the list and changed the script generating the locales.json to skip such locales.

YYYY-MM-DD HH:MM:SS

That's not possible. The date format is always following the locale. There was a feature request #15381 but it's closed 🤷‍♂️ . A blocker for such a feature is that some libraries used by Nextcloud (e.g fullcalendar.js) do not support custom date formats.

@kesselb kesselb added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels May 16, 2020
@kesselb kesselb linked a pull request May 16, 2020 that will close this issue
backportbot-nextcloud bot pushed a commit that referenced this issue May 18, 2020
As reported at #20999 the list contains en_US_POSIX as locale but punic is unable to parse such a locale. If you select that locale everyone is confused.

Signed-off-by: Daniel Kesselberg <[email protected]>
backportbot-nextcloud bot pushed a commit that referenced this issue May 18, 2020
As reported at #20999 the list contains en_US_POSIX as locale but punic is unable to parse such a locale. If you select that locale everyone is confused.

Signed-off-by: Daniel Kesselberg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants