all repos — fluxbox @ 577859034db0e0e36ceab85ebba62e1018dd3361

custom fork of the fluxbox windowmanager

fix crash when unable to convert from local to utf-8
simonb simonb
commit

577859034db0e0e36ceab85ebba62e1018dd3361

parent

87e401edf6146e4205bdfc807651a7d627a323db

2 files changed, 5 insertions(+), 0 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,6 +1,8 @@

(Format: Year/Month/Day) Changes for 1.0rc2: *06/06/25: + * Fix crash when unable to convert between local and utf-8 encodings (Simon) + FbTk/FbString.cc * Fix DetachClient key command so new window is visible (Mark) Window.cc *06/06/24:
M src/FbTk/FbString.ccsrc/FbTk/FbString.cc

@@ -130,6 +130,9 @@ // If empty message, yes this can happen, return

if (in.empty()) return ""; + if (cd == ((iconv_t)(-1))) + return in; // can't convert + size_t insize = in.size(); size_t outsize = insize; char * out = (char *) malloc(outsize * sizeof(char)); // need realloc