<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14801</bug_id>
          
          <creation_ts>2022-05-13 10:38:38 +0000</creation_ts>
          <short_desc>UTF-16LE is not supported in Kirkstone</short_desc>
          <delta_ts>2022-05-26 14:38:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>connectivity</component>
          <version>4.0</version>
          <rep_platform>Other</rep_platform>
          <op_sys>arm64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Feng">chenfeng0026</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>chenfeng0026</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>workjagadeesh</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93267</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Feng">chenfeng0026</who>
    <bug_when>2022-05-13 10:38:38 +0000</bug_when>
    <thetext>Hi friend,

There is libmtp-1.1.17 in the Kirkston version, libmtp1.1.17 supports UTF-16LE, but the Kirkston version of glibc does not support UTF-16, is it a bug? Or which lib or tools do I need to enable to support UTF-16LE?

root# mtp-detect
libmtp version: 1.1.17
Listing raw device(s)
Device 0 (VID=18d1 and PID=4ee2) is a Google Inc Nexus/Pixel (MTP+ADB).
Found 1 device(s):
Google Inc: Nexus/Pixel (MTP+ADB) (18d1:4ee2) @ bus 4, dev 3
Attempting to connect device(s)
LIBMTP PANIC: Cannot open iconv() converters to/from UCS-2!
Too old stdlibc, glibc and libiconv?
Unable to open raw device 0
OK.

root:~# ls -l /lib64/libc-2.31.so
-rwxr-xr-x 1 root root 1474664 Apr 27 12:24 /lib64/libc-2.31.so

root:~# iconv --list
The following list contains all the coded character sets known.  This does
not necessarily mean that all combinations of these names can be used for
the FROM and TO command line parameters.  One coded character set can be
listed with several different names (aliases).

  10646-1:1993, 10646-1:1993/UCS4, ANSI_X3.4-1968, ANSI_X3.4-1986, ANSI_X3.4,
  ASCII, CP367, CSASCII, CSUCS4, IBM367, ISO-10646, ISO-10646/UCS2,
  ISO-10646/UCS4, ISO-10646/UTF-8, ISO-10646/UTF8, ISO-IR-6, ISO-IR-193,
  ISO646-US, ISO_646.IRV:1991, OSF00010020, OSF00010100, OSF00010101,
  OSF00010102, OSF00010104, OSF00010105, OSF00010106, OSF05010001, UCS-2,
  UCS-2BE, UCS-2LE, UCS-4, UCS-4BE, UCS-4LE, UCS2, UCS4, UNICODEBIG,
  UNICODELITTLE, US-ASCII, US, UTF-8, UTF8, WCHAR_T</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93297</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Feng">chenfeng0026</who>
    <bug_when>2022-05-22 08:22:57 +0000</bug_when>
    <thetext>Hi friend,
 any updates ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93300</commentid>
    <comment_count>2</comment_count>
    <who name="Jagadeesh Krishnanjanappa">workjagadeesh</who>
    <bug_when>2022-05-23 12:37:29 +0000</bug_when>
    <thetext>You need to install glibc-gconv-utf-16 package to get UTF-16 format.

Example:
Without glibc-gconv-utf-16:
root@qemux86-64:~# iconv --list | grep -i utf-16
root@qemux86-64:~#


With glibc-gconv-utf-16:
root@qemux86-64:~# iconv --list | grep -i utf-16
UTF-16//
UTF-16BE//
UTF-16LE//
root@qemux86-64:~# 

Regards,
Jagadeesh</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93302</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Feng">chenfeng0026</who>
    <bug_when>2022-05-24 14:42:10 +0000</bug_when>
    <thetext>Hi Jagadeesh

Thanks for your reply, in yocto, how should I enable it(glibc-gconv-utf-16)

https://git.openembedded.org/meta-openembedded/tree/

I am using Qcom&apos;s auto-arm64. It seems that without this bb file, it can be enabled directly

Thanks
Feng</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93303</commentid>
    <comment_count>4</comment_count>
    <who name="Jagadeesh Krishnanjanappa">workjagadeesh</who>
    <bug_when>2022-05-24 14:53:02 +0000</bug_when>
    <thetext>The glibc-gconv-utf-16 package gets generated from http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-core/glibc/glibc-locale.inc?h=kirkstone&amp;id=58d4f669bd46805669daf87626350fe9359feca5

You need NOT add any layer. Just add the following line in the conf/local.conf and build your image.

IMAGE_INSTALL:append = &quot; glibc-gconv-utf-16&quot;


Regards,
Jagadeesh</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93321</commentid>
    <comment_count>5</comment_count>
    <who name="Chen Feng">chenfeng0026</who>
    <bug_when>2022-05-26 12:07:08 +0000</bug_when>
    <thetext>Thanks Jagadeesh, Utf-16 has been enabled in my system</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93322</commentid>
    <comment_count>6</comment_count>
    <who name="Jagadeesh Krishnanjanappa">workjagadeesh</who>
    <bug_when>2022-05-26 12:35:33 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; Thanks Jagadeesh, Utf-16 has been enabled in my system

Great. If the purpose is fulfilled you can close this bug.

Regards 
Jagadeesh</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93327</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-05-26 14:38:31 +0000</bug_when>
    <thetext>User added package to image and resolved issue</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>