Bug #2316

duktape can't convert var to string if it contains chars encoded in latin1 (duktape)

Added by Leonid Protasov over 6 years ago. Updated over 6 years ago.

Status:FixedStart date:11/01/2014
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:API
Target version:4.8
Found in version:Latest BE Platform:Linux

Description

the code:

v = showtime.httpReq(BASE_URL, {
                    postdata: {
                        'login_name': credentials.username,
                        'login_password': credentials.password,
                        'login': 'submit'
                    },
                    noFollow: true
                })+'';

If you use .toString() instead of +'' it still logs:

ECMASCRIPT [ERROR]: Error (Unknown character encoding latin-1) at /root/showtime/src/ecmascript/es_string.c:55
ECMASCRIPT [ERROR]: STACK DUMP: Error: Unknown character encoding latin-1
                        /root/showtime/src/ecmascript/es_string.c:55
                        anon  native strict preventsyield
                        anon showtime/http:60 preventsyield
                        anon file:///root/showtime-plugins/ingfilm/ingfilm.js:277 preventsyield
                        apply  native strict preventsyield
                        anon showtime/page:120 preventsyield

Associated revisions

Revision dadec9fb
Added by Andreas Smas over 6 years ago

Add 'latin-1' as alias to ISO-8859-1

Fixes #2316

Change included in version 4.7.418

History

#1 Updated by Andreas Smas over 6 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF