From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Evgeny Zajcev Newsgroups: gmane.emacs.devel Subject: Re: user-ptr as image :data Date: Fri, 15 Mar 2019 23:28:52 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c9ca09058427e3e6" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="46020"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel To: monnier@iro.umontreal.ca Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Mar 15 21:29:16 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4tS7-000BmB-4W for ged-emacs-devel@m.gmane.org; Fri, 15 Mar 2019 21:29:15 +0100 Original-Received: from localhost ([127.0.0.1]:60967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4tS5-0005KG-Uc for ged-emacs-devel@m.gmane.org; Fri, 15 Mar 2019 16:29:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h4tRy-0005Jz-Na for emacs-devel@gnu.org; Fri, 15 Mar 2019 16:29:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h4tRy-0002rE-1U for emacs-devel@gnu.org; Fri, 15 Mar 2019 16:29:06 -0400 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:37082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h4tRx-0002pm-F5 for emacs-devel@gnu.org; Fri, 15 Mar 2019 16:29:05 -0400 Original-Received: by mail-lj1-x236.google.com with SMTP id a17so9062910ljd.4 for ; Fri, 15 Mar 2019 13:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=Mgy/zCq0I1WeRLet6eTwF8Zm1TtU7gTQIuYXDFelqBk=; b=jhQ0dq5NKlk8zIIDbT/OAqGAwE+VCO//QVJlsxrHhIFcrLIXD0lolLPyYic1K+gCHR PkVAHsrp1QJQhhKf7F9nl/T9k8R0JSF4DTnMlcelLTswHeqP42NE/5DnHEejf2/cOZ5d MM2p4kd4IzZEyQ9AT3VG2IBNi38GYYmGh0jNSwTiL4rauOZMapcNHvaHm8GymXlpjSNo rTfJ/Q+H1UEtemAFD9pZi2BklPdZVE0lOHUwPsAWNJsFr+utCqybwOuRz+KcRQQdUG/m dVsqipEp9Uk6P3lkdTay0LO0K0g5pqzE02V7lYLy/FpuXcsoB7ISRt3NJZg4J6+QFKvU mSlA== 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=Mgy/zCq0I1WeRLet6eTwF8Zm1TtU7gTQIuYXDFelqBk=; b=RHrjIvn/nCpFGa2iuzggdwnfUbp9zjzpG3NAaCBlHKj946mYqSeE2OgwDiwfrLkSWT nkEiWIBXZ8b91gC3WDG+W2SCCE3rxFCc0r7NUkusmzuNWL+MwJw7Sd/IW62gGSPf8cbt Bli4FPYlPRdyDRXveXAGpHsz192oPdHQmtZch+wtHZtbNPvpBXrE7jsYYTYVwJ0x91ye 4wPnxRC0lq7j3sDFbkuc2u8qCQsLDshUCkXcoxrh1SynZKwrNk3BlxrprBT9ebC+/Zb9 cbHSSVGTyOLe/zNBn+5mzBHlpL5D9HVDoD35nIe3lW6X+R/W3P1u7F6ZxKl0+t10j21p jrTQ== X-Gm-Message-State: APjAAAXuctp0PYRk47fTWcFOQVNBF/6hiohUsQA3cuL4E3VLFOH+KT9p PlvdENFnl68s40zgDg/IQ0m/z4/b5ABLKzmwPao= X-Google-Smtp-Source: APXvYqzlzG+8NL3Sw5nA2sHXJt09upfUteI6LYMndj4t1VEVlRluVy17F4EG/+qwEawjWJUJsbwYw4s94ttBcyVpt2k= X-Received: by 2002:a2e:6a10:: with SMTP id f16mr3252990ljc.161.1552681743795; Fri, 15 Mar 2019 13:29:03 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:234188 Archived-At: --000000000000c9ca09058427e3e6 Content-Type: text/plain; charset="UTF-8" > Hmm... indeed we don't have any direct way to create a unibyte string. > Can you `M-x report-emacs-bug` to request this new feature? will do > AFAICT while the string needs to have a NUL byte after its end, > make_string should handle NUL bytes within the string, so the best > option until a new primitive is provided is probably: > 1- use make-string on your non-utf-8 binary data. > 2- call encode-coding-string on the result (with utf-8 coding system). This works! very slow, but it works, I'll use this hack for now thanks -- lg --000000000000c9ca09058427e3e6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Hmm... indeed we don't have any direct way t=
o create a unibyte string.
> Can you `M-x report-emacs-bug` to request this new feature?

will do
> AFAICT while the string needs to have a NUL byte after its end, > make_string should handle NUL bytes within the string, so the best > option until a new primitive is provided is probably: > 1- use make-string on your non-utf-8 binary data. > 2- call encode-coding-string on the result (with utf-8 coding system).=
This works! very slow, but it works, I'll use this hack for = now

thanks

--
lg
--000000000000c9ca09058427e3e6--