`Gtk-WARNING **: Locale not supported by C library. ` when starting apps from the commandline
2016-04-28 13:41
537 查看
http://askubuntu.com/questions/359753/gtk-warning-locale-not-supported-by-c-library-when-starting-apps-from-th I didn't get an answer but I wasn't doing anything and this is an interesting topic. In Ubuntu 12.04, when opening a file in gedit or if I am working on the command line in dpkg, I get returned the error "locale not supported, falling back to default "C" libraries", and the one below, Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. command-line gnome apt locale
| |||
2 Answers
activeoldestvotesup vote8down voteaccepted | First make sure your library language is installedsudo apt-get install language-pack-en-base, for example. Then, as superuser, shorten the work by allowing Ubuntu to automatically configure them: sudo dpkg-reconfigure locales Check your setup, if it's correct then good. But if you have the LANG=or LANGUAGE=settings blank, run this in command line: locale -a Which generates the locales installed and available to you. Choose the locale from the output generated that fits your situation, and export that setting to replace your locales, for example: export LC_ALL="en.utf-8" For manual installation use exportto set locale by hand which will manually install custom locales, first run the set up as above. Then, say you want to install "en_us-8"for language but have need for another locale for NUMERICand TIME, you may wish to use "en_NZ.utf-8"(remember: these are case-sensitive) or LANGUAGE="en_GB.utf-8"and NUMERIC="en.dk.ISO-8859-15". Traveling to New Zealand, I could change the locale LANGUAGE="en.NZ". For Germany, I would just need to install the locales pkg for it and input, in terminal, like the examples below: export LC_ALL="en_US" export LANG="en_US" export LANGUAGE="en_NZ" export C_CTYPE="en_US" export LC_NUMERIC= export LC_TIME=en"en_US" LC_ALL=may remain empty.
| |||
add a comment |
up vote2down vote | first:sudo apt-get purge locales then: sudo aptitude install locales and the famous: sudo dpkg-reconfigure locales This rids the system of locales, then re-installs locales and downgrades libc6 from 2.19 to 2.13 which is the issue. Then configures locales again. |
相关文章推荐
- android 真机调试
- Android触摸事件分发之View篇
- iOS中通知中心(NSNotificationCenter)的使用总结
- Android 属性动画(Property Animation) 完全解析 (上)
- ios 单击和双击手势
- android中的weight
- WebApp之 apple-touch-icon
- Android--仿1号店继续拖动查看图文详情——一个自定义的ViewGroup
- Android_完全退出
- 移动端网站提升页面加载性能的优化技巧
- Android退出多个Activity的两个经典方法
- iOS地图集成示例:百度地图POI检索
- 关于android手机发送彩信权限
- 我的Android进阶之旅------>解决错误: java.util.regex.PatternSyntaxException: Incorrect Unicode property
- Android实现GridView的item长按拖动删除完美实现(带动画效果)
- APP消息推送内容、推送频率如何选择? (推送率)
- Android百度地图深入学习(2)
- ios开发 文件操作
- Android编程规范
- Android--自定义弹出框-自定义dialog