From: christian.gogo2014@... Date: 2020-06-09T23:43:09+00:00 Subject: [ruby-core:98696] [Ruby master Bug#16943] Incorrect Behaves on Hash-From-Pair-Array Issue #16943 has been reported by christian.gogo2014 (Chistian Y.). ---------------------------------------- Bug #16943: Incorrect Behaves on Hash-From-Pair-Array https://bugs.ruby-lang.org/issues/16943 * Author: christian.gogo2014 (Chistian Y.) * Status: Open * Priority: Normal * ruby -v: 2.5.1p57 * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- Please considere the follow example header = ["CONSECUTIVO", "ESTATUS", "ID", "NOMBRE COMERCIAL", "SUCURSAL", "UBICACI�N", "EQUIPO", "CALLA", "NUMERO EXTERIOR", "NUMERO INTERIOR", "REFERENCIA", "COLONIA", "C P", "MUNICIPIO", "CIUDAD", "ESTADO", "CONTACTO SUCURSAL", "TELEFONO", "CORREO ELECTRONICO", "VENDEDOR ACTUAL", "FECHA DE INSTALACI�N", "ESTATUS DE FACTURACI�N", "ID CLIENTES", "RAZ�N SOCIAL", "RFC", "CALLE", "N�MERO", "COLONIA", "DELEGACI�N", "C P", "CIUDAD", "PRECIO ACORDADO", "SF_PRESENT"] @spreadsheet = ["151", "Cancelado", "KA70200161", "IPQ QUERETARO", "Pirineos #535", "Planta", "DBT", "Pirineos", "535", "1 y 2", nil, "Zona Industrial Benito Ju�rez", "76120", "Santiago de Quer�taro", "Quer�taro", "Quer�taro", "Oscar Romero ", "442 496 6366", "-", "Jaser Asahel Galicia Velazquez", "12/07/2017", "Cancelado", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil] array = [header, @spreadsheet].transpose new_hash = Hash[array] **Expected Behaves ----------------------** new_hash["C P"] == "76120" => true **Result on -----------------------------** - ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux] - ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin15] new_hash["C P"] => nil Thanks in advance! -- https://bugs.ruby-lang.org/ Unsubscribe: