From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 1DD703858C27; Wed, 10 Mar 2021 09:09:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1DD703858C27 Received: by mail-ej1-x630.google.com with SMTP id mm21so37079532ejb.12; Wed, 10 Mar 2021 01:09:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ele48bE8DjGgsAgRlc40IXVOfRMbgwdD77SBr8d2E4A=; b=RA8g3K6r3ooxsCIPrZQO9Sm82ckh6CCRrX85xZr2r+S+Fp3+YlcQo2DCh5hpVbdq3U Es2V3/uvc4GDhLjjfulGq/fspdpx0l6ScajyznqecDITeGgW9IyWx4uziO6+ewY3d0ZM d06sHxrMbOtKZZnC6VEWubCuScErsl1UHgRRQCRzfcBExmURAqpJuKcnKUKcGxRKcCR1 f0yF85nqpEISMJ6satkXlV8Wu/l2N+q5Fbiyas3EKPq0z913rzaEidC0YVGCjhZqV4Z2 vjF1Tcv9v2fOLt9RSsT0FO43Dvkfh3RExkPnMeW5Gs5xU9kKn/IeiVpVjK3HYt1U7FE3 B5KQ== X-Gm-Message-State: AOAM5301VbBxOeDYp+R43mZFi7mUvuT2YT+7GLxPQlRFNpXv9xVYZv8r PpVNiGKsFNtWFKSjkthjr3Wtps1pyqOUOXfnm/DRHVx0u0A= X-Google-Smtp-Source: ABdhPJzd3yarRLz4jcs33IvD8s1awc0RXksr+p0L5TQICwlB1su8tH5i5h9BnD2uQGGY0DGPOKmwnl/7y53HgMYDICQ= X-Received: by 2002:a17:906:f9db:: with SMTP id lj27mr2562193ejb.399.1615367379798; Wed, 10 Mar 2021 01:09:39 -0800 (PST) MIME-Version: 1.0 From: Lokesh Janghel Date: Wed, 10 Mar 2021 14:39:27 +0530 Message-ID: Subject: iconv: illegal input sequence To: libc-alpha@sourceware.org, libc-locales@sourceware.org Cc: Umesh Kalappa Content-Type: multipart/mixed; boundary="000000000000dae11905bd2b063e" X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00, BODY_8BITS, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-locales@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-locales mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 09:09:42 -0000 --000000000000dae11905bd2b063e Content-Type: text/plain; charset="UTF-8" Hi, I am working on the charset conversion from cp932 to utf8. And got the following problem with gcc-8.3: $ccppc -E test.cxx -finput-charset=cp932 cc1plus: error: conversion from cp932 to UTF-8 not supported by iconv And I am facing error like "iconv: illegal input sequence at position 85" When I try to convert with: $iconv -f cp932 -t utf8 test.cxx Can you help me with the issue if I am following the wrong step or missing something? Please let me know your thoughts on the problem. Thanks and regards, Lokesh Janghel --000000000000dae11905bd2b063e Content-Type: text/plain; charset="UTF-8"; name="test.cxx" Content-Disposition: attachment; filename="test.cxx" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_km37cl6e0 I2lmIDANCiNpbmNsdWRlIDx2eFdvcmtzLmg+DQojaW5jbHVkZSA8c3RkaW8uaD4NCiNlbmRpZg0K DQp2b2lkIHRlc3Rfc2ppcygpDQp7DQogICAgcHJpbnRmKCLvv73vv73vv73vv73vv71TaGlmdC1K SVPvv73Mg2Xvv71Y77+9Z++/vcWC77+977+9QlxuIik7DQp9 --000000000000dae11905bd2b063e--