stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] UTF8 related bug


From: Vladimir Sedach
Subject: Re: [STUMP] UTF8 related bug
Date: Tue, 28 Feb 2012 13:29:02 -0500

Also, and important: signal handlers need to be added to stumpwm to
prevent encoding errors from crashing the whole window manager. This
means some thing will not work if stumpwm assumes UTF-8 encoding and
the filenames or X give back Latin-1 or similar, but it's better than
dying.

Vladimir

On Tue, Feb 28, 2012 at 1:22 PM, Vladimir Sedach <address@hidden> wrote:
> Which Unix are you using, and what kind of language settings do you
> have? One way to find out is to 'echo $LANG' in the console.
>
> It looks like the file name is in ISO 8859-1/Latin-1 (0xF6 is o with
> the umlaut). So there are two solutions: set the default encoding to
> latin-1 for stumpwm (I don't know off the top of my head how to do
> that), or set your system to use UTF-8 encoding. The second way is
> preferable because then you will not have any trouble transferring
> your files to other machines using UTF-8, or trouble with other
> languages. convmv (http://www.j3e.de/linux/convmv/man/) is a very
> useful tool to help convert filenames to UTF-8.
>
> Vladimir
>
> On Tue, Feb 28, 2012 at 9:30 AM, Stefan Reichör <address@hidden> wrote:
>> Because I have learned today where to look up a crash in stumpwm, I have
>> another crash that happens from time to time.
>>
>> When I open a file containing an umlaut (e.g. ö) in evince, the whole
>> stumpwm session dies with the following backtrace:
>>
>>
>> Caught '
>> CONVERT-STRING-FROM-BYTES: Invalid byte sequence #xF6 #x72 #x2E #x70 in 
>> CHARSET:UTF-8 conversion
>> ' at the top level. Please report this.
>> <1/143> #<SYSTEM-FUNCTION EXT:SHOW-STACK> 3
>> <2/139> #<COMPILED-FUNCTION STUMPWM::PRINT-BACKTRACE>
>> [138] unwind-protect frame
>> - #<COMPILED-FUNCTION STUMPWM::BACKTRACE-STRING>
>> <3/132> #<COMPILED-FUNCTION STUMPWM::BACKTRACE-STRING>
>> - :TOP-LEVEL
>> - #<COMPILED-FUNCTION STUMPWM::PERFORM-TOP-LEVEL-ERROR-ACTION>
>> <4/128> #<COMPILED-FUNCTION STUMPWM::PERFORM-TOP-LEVEL-ERROR-ACTION>
>> - #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP-3-1>
>> <5/126> #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP-3-1>
>> - #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP-3-1>
>> - #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP>
>> <6/122> #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP>
>> - #<EXT:SIMPLE-CHARSET-TYPE-ERROR #x21676E1E>
>> <7/117> #<SYSTEM-FUNCTION SIGNAL> 1
>> [116] frame binding variables (~ = dynamically):
>>  | ~ *PRINT-READABLY* <--> NIL
>> - #<EXT:SIMPLE-CHARSET-TYPE-ERROR #x21676E1E>
>> - #<ENCODING CHARSET:UTF-8 :UNIX>
>> <8/111> #<SYSTEM-FUNCTION EXT:CONVERT-STRING-FROM-BYTES> 2
>> - #<COMPILED-FUNCTION STUMPWM::UTF8-TO-STRING>
>> <9/105> #<COMPILED-FUNCTION STUMPWM::UTF8-TO-STRING>
>> - (103 108 103 49 50 95 82 75 95 114 101 105 99 104 246 114 46 112 100 102)
>> - #<XLIB:WINDOW 1914x1175+0+0 localhost #x02400004 #x2163FA7E>
>> <10/102> #<COMPILED-FUNCTION STUMPWM::XWIN-NET-WM-NAME>
>> - #<XLIB:WINDOW 1914x1175+0+0 localhost #x02400004 #x2163FA7E>
>> <11/100> #<COMPILED-FUNCTION STUMPWM::XWIN-NAME>
>> - :WM_NAME
>> <12/98> #<COMPILED-FUNCTION STUMPWM::UPDATE-WINDOW-PROPERTIES>
>> - #S(TILE-WINDOW "Document Viewer" #x2400004)
>> - :NEW-VALUE
>> - #<XLIB:WINDOW 1914x1175+0+0 localhost #x02400004 #x2163FA7E>
>> <13/94> #<COMPILED-FUNCTION #:G46274>
>> - #<COMPILED-FUNCTION #:G46274>
>> [86] catch frame for tag #:SIMPLE-RESTART-46736
>> <14/82> #<COMPILED-FUNCTION STUMPWM::HANDLE-EVENT-2>
>> - #<COMPILED-FUNCTION STUMPWM::HANDLE-EVENT-2>
>> - #<COMPILED-FUNCTION STUMPWM::HANDLE-EVENT-2>
>> [75] compiled tagbody frame for #(NIL)
>> -
>> #(#(#(NIL
>>      (:DISPLAY #<XLIB:DISPLAY localhost:0 (The X.Org Foundation R11001000) 
>> X11.0 #x215F65CE> :EVENT-CODE 28 :SEND-EVENT-P NIL :SEQUENCE 56393 
>> :EVENT-KEY :PROPERTY-NOTIFY :WINDOW #<XLIB:WINDOW 1914x1175+0+0 localhost 
>> #x02400004 #x2163FA7E> :EVENT-WINDOW #<XLIB:WINDOW 1914x1175+0+0 localhost 
>> #x02400004 #x2163FA7E>
>>       :ATOM :WM_NAME :STATE :NEW-VALUE :TIME 9046775))
>>    #<COMPILED-FUNCTION #:G46274>)
>>  NIL)
>> -
>> #(#(NIL
>>    (:DISPLAY #<XLIB:DISPLAY localhost:0 (The X.Org Foundation R11001000) 
>> X11.0 #x215F65CE> :EVENT-CODE 28 :SEND-EVENT-P NIL :SEQUENCE 56393 
>> :EVENT-KEY :PROPERTY-NOTIFY :WINDOW #<XLIB:WINDOW 1914x1175+0+0 localhost 
>> #x02400004 #x2163FA7E> :EVENT-WINDOW #<XLIB:WINDOW 1914x1175+0+0 localhost 
>> #x02400004 #x2163FA7E>
>>     :ATOM :WM_NAME :STATE :NEW-VALUE :TIME 9046775))
>>  #<COMPILED-FUNCTION #:G46274>)
>> - #<COMPILED-FUNCTION STUMPWM::HANDLE-EVENT>
>> - #<XLIB:DISPLAY localhost:0 (The X.Org Foundation R11001000) X11.0 
>> #x215F65CE>
>> <15/66> #<COMPILED-FUNCTION STUMPWM::HANDLE-EVENT>
>> - #<UNBOUND>
>> - #<UNBOUND>
>> - #<COMPILED-FUNCTION STUMPWM::HANDLE-EVENT>
>> <16/63> #<ADD-ON-SYSTEM-FUNCTION XLIB:PROCESS-EVENT> 2
>> - 9
>> - #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP-5>
>> <17/54> #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP-5>
>> [53] handler frame for conditions XLIB:LOOKUP-ERROR WARNING (OR 
>> SERIOUS-CONDITION ERROR) T
>> - #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP-4>
>> - #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP-2>
>> - #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP>
>> <18/43> #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL-LOOP>
>> [40] unwind-protect frame
>> [35] catch frame for tag #:SIMPLE-RESTART-49939
>> - NIL
>> - ""
>> - ":0"
>> <19/27> #<COMPILED-FUNCTION STUMPWM::STUMPWM-INTERNAL>
>> - #<COMPILED-FUNCTION STUMPWM>
>> <20/22> #<COMPILED-FUNCTION STUMPWM>
>> - #<COMPILED-FUNCTION STUMPWM>
>> - ((EXT:QUIT))
>> [10] frame binding variables #<ADDRESS #x03CB0028> binds (~ = dynamically):
>>  Next environment: NIL
>> <21/4> #<FUNCTION :LAMBDA NIL (STUMPWM) (EXT:QUIT)> 0
>> - #<FUNCTION :LAMBDA NIL (STUMPWM) (EXT:QUIT)>
>> <22/2> #<COMPILED-FUNCTION EXT::SAVEINITMEM-1>
>> <23/3> #<SYSTEM-FUNCTION SYSTEM::DRIVER>
>> <24/3> #<SYSTEM-FUNCTION SYSTEM::DRIVER>
>> - #<ADDRESS #x00000000>
>> - #<ADDRESS #x00000000>
>> WARNING: (DEFCONSTANT +IPV4-ZERO+ "00000000") redefines the constant 
>> +IPV4-ZERO+. Its old value was visually similar though. Set 
>> CUSTOM:*SUPPRESS-SIMILAR-CONSTANT-REDEFINITION-WARNING* to avoid this 
>> warning.
>> WARNING: DEFUN/DEFMACRO: redefining function STUMPWM.CONTRIB.NET::KBMB in 
>> /home/srei/xsteve-local-config/.stumpwmrc, was defined in 
>> /home/srei/work/git/stumpwm/make-image.lisp
>> WARNING: DEFUN/DEFMACRO: redefining function STUMPWM.CONTRIB.NET::KBMB in 
>> /home/srei/work/git/stumpwm/make-image.lisp, was defined in 
>> /home/srei/xsteve-local-config/.stumpwmrc
>> *** - CONVERT-STRING-FROM-BYTES: Invalid byte sequence #xF6 #x72 #x2E #x70 
>> in CHARSET:UTF-8 conversion
>>
>> Bye.
>> xterm-vsim:  fatal IO error 11 (Resource temporarily unavailable) or 
>> KillClient on X server ":0.0".
>> g_dbus_connection_real_closed: Remote peer vanished with error: Underlying 
>> GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
>> Handling SIGTERM.
>> Successfully wrote to shutdown pipe, resetting signal handler.
>> g_dbus_connection_real_closed: Remote peer vanished with error: Underlying 
>> GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
>> Terminated
>> xterm4:  fatal IO error 11 (Resource temporarily unavailable) or KillClient 
>> on X server ":0.0".
>> XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server 
>> ":0.0".
>>      after 132 requests (132 known processed) with 12 events remaining..
>> [2572:2572:9056760334:ERROR:browser_main_gtk.cc(54)] X IO Error detected
>> xterm1:  fatal IO error 11 (Resource temporarily unavailable) or KillClient 
>> on X server ":0.0".
>>
>> _______________________________________________
>> Stumpwm-devel mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/stumpwm-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]