Ticket #2308: tripwire-2.4.0.1-mb_fix.patch

File tripwire-2.4.0.1-mb_fix.patch, 748 bytes (added by Arthur Demchenkov, 17 years ago)

Fixes the bug with multibyte locales

  • src/tw/textreportviewer.cpp

    Submitted By: Arthur Demchenkov (spinal dot by at mail dot ru)
    Date: 2007-03-10
    Initial Package Version: tripwire-2.4.0.1
    Upstream Status: Unknown
    Description: Fixes the bug with multibyte locales.
    
    diff -Naur tripwire-2.4.0.1-orig/src/tw/textreportviewer.cpp tripwire-2.4.0.1/src/tw/textreportviewer.cpp
    old new  
    19971997            else
    19981998            {
    19991999                // incomplete mb char -- keep reading in bytes
     2000                // reset mbtowc internal shift after invalid conversion
     2001                mbtowc ( NULL, NULL, 1 );
    20002002            }
    20012003        }
    20022004    }