mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-15 10:42:27 +03:00
fix for properly displaying unicode characters to sys.stdout (known python issue)
This commit is contained in:
parent
a3db3c03c1
commit
37590520c4
|
@ -22,6 +22,8 @@ with sqlmap; if not, write to the Free Software Foundation, Inc., 51
|
||||||
Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import codecs
|
||||||
|
import locale
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
@ -30,6 +32,8 @@ import warnings
|
||||||
|
|
||||||
warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning)
|
warnings.filterwarnings(action="ignore", message=".*was already imported", category=UserWarning)
|
||||||
|
|
||||||
|
sys.stdout = codecs.getwriter(locale.getpreferredencoding())(sys.stdout)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import psyco
|
import psyco
|
||||||
psyco.full()
|
psyco.full()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user