all repos — fluxbox @ 5643caa65520c7410a87e6daaa55e3b7adb005f8

custom fork of the fluxbox windowmanager

Fix: locale extraction from LC_ALL: remove "LC_CTYPE=".
grubert grubert
commit

5643caa65520c7410a87e6daaa55e3b7adb005f8

parent

3b151a83d24ee61e9c8ad6d0ee16cf90c4060a50

1 files changed, 5 insertions(+), 1 deletions(-)

jump to
M src/I18n.ccsrc/I18n.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: I18n.cc,v 1.4 2003/12/08 17:29:24 fluxgen Exp $ +// $Id: I18n.cc,v 1.5 2004/01/06 13:42:47 grubert Exp $ //usr GNU extensions #ifndef _GNU_SOURCE

@@ -79,6 +79,10 @@ // remove everything after .

index = m_locale.find('.'); if (index != string::npos) m_locale.erase(index); //erase all characters starting at index + // remove everything before = + index = m_locale.find('='); + if (index != string::npos) + m_locale.erase(0,index+1); //erase all characters starting up to index } #endif // HAVE_SETLOCALE }