mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 15:53:12 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e050eebb2e | |||
| e8a7869722 |
@@ -1,5 +1,11 @@
|
|||||||
# WeeChat ChangeLog
|
# WeeChat ChangeLog
|
||||||
|
|
||||||
|
## Version 4.5.3 (under dev)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: save configuration files as UTF-8 when the locale is wrong
|
||||||
|
|
||||||
## Version 4.5.2 (2025-02-20)
|
## Version 4.5.2 (2025-02-20)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -3253,7 +3253,8 @@ string_iconv_to_internal (const char *charset, const char *string)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Converts internal string to terminal charset, for display.
|
* Converts internal string to terminal charset, for display or write of
|
||||||
|
* configuration files.
|
||||||
*
|
*
|
||||||
* Note: result must be freed after use.
|
* Note: result must be freed after use.
|
||||||
*/
|
*/
|
||||||
@@ -3270,6 +3271,10 @@ string_iconv_from_internal (const char *charset, const char *string)
|
|||||||
if (!input)
|
if (!input)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
/* if the locale is wrong, we keep UTF-8 */
|
||||||
|
if (!weechat_locale_ok)
|
||||||
|
return input;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* optimized for UTF-8: if charset is NULL => we use term charset => if
|
* optimized for UTF-8: if charset is NULL => we use term charset => if
|
||||||
* this charset is already UTF-8, then no iconv is needed
|
* this charset is already UTF-8, then no iconv is needed
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ extern char *weechat_data_dir;
|
|||||||
extern char *weechat_state_dir;
|
extern char *weechat_state_dir;
|
||||||
extern char *weechat_cache_dir;
|
extern char *weechat_cache_dir;
|
||||||
extern char *weechat_runtime_dir;
|
extern char *weechat_runtime_dir;
|
||||||
|
extern int weechat_locale_ok;
|
||||||
extern char *weechat_local_charset;
|
extern char *weechat_local_charset;
|
||||||
extern int weechat_plugin_no_dlclose;
|
extern int weechat_plugin_no_dlclose;
|
||||||
extern int weechat_no_gnutls;
|
extern int weechat_no_gnutls;
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
weechat_stable="4.5.2"
|
weechat_stable="4.5.2"
|
||||||
weechat_devel="4.5.2"
|
weechat_devel="4.5.3-dev"
|
||||||
|
|
||||||
stable_major=$(echo "${weechat_stable}" | cut -d"." -f1)
|
stable_major=$(echo "${weechat_stable}" | cut -d"." -f1)
|
||||||
stable_minor=$(echo "${weechat_stable}" | cut -d"." -f2)
|
stable_minor=$(echo "${weechat_stable}" | cut -d"." -f2)
|
||||||
|
|||||||
Reference in New Issue
Block a user