From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +KFICb9aE2cXQQAAe85BDQ:P1 (envelope-from ) for ; Sat, 19 Oct 2024 07:07:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id +KFICb9aE2cXQQAAe85BDQ (envelope-from ) for ; Sat, 19 Oct 2024 09:07:43 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TOF4p7Qq; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729321663; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tjMvL+AhxKWluG7eC6zSrGZhcABGGcxTcGB1MCIDIgE=; b=si+QXfQxGdVkqQXXS/lLD5e8WohXTzhA0Vi05I9fpH5ahubilxjLnjYinE6d1JDS9Ukecc JwMqlAj9p+KdkD4lbmgGd/Opf+5iLkK4SA1WIuY/5iM1jPhXz7VkA6wnGsni5N+IlOIEFq GeYK7Km2WbxORuQEeFV7lO6/ttMXr2H4LBFbE+sKFIg8JKDnK+Ocwiyqc4ARA8TFLVaJE1 NNfHePz9uw3XOHNkv9buP9BJp+EQUfz737Np3lO7nH1q0kAjdMimYEETFbJuK8jgQsHSRs n+rg+b/rYHZxJEWHx0436gRYmW9xV/S9hkIugWs29UTmKBvBIzehsMgveK69wA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729321663; a=rsa-sha256; cv=none; b=c2lTjG5jocKKmHXH4f24s4Y+bCQnupUWyFKXLuhNIY5La8RhwpYXp9V+jn4bxMeBKfKQxE oCkyn4w3CFmHOO4mFJVIbavMvPyNr5/TJelOC3VaHJ6zuufRIkCCAjagsYBm5TGFLoKxYW ok68g028ii27qYcVzellIl33oCReQRTYjtobYQlk2keYJ30xeIktBM2l4wX5M1V9p584Xl Vd8quY/PlROYuRSYoVYKmtX5qL1PIg6wicl1QIhqNmusvHSKD6zxLfxO6PHWtm13etw+1d lDeO3qF9zsCgqNHCjaXkYqvX1tzNKDwC3QX5/t/okqfWaHWYcjx9TGvGVxgRrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=TOF4p7Qq; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id EC2FF8109D for ; Sat, 19 Oct 2024 09:07:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t23Xy-0002ca-6Q; Sat, 19 Oct 2024 03:06:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t23Xv-0002cM-WF for emacs-orgmode@gnu.org; Sat, 19 Oct 2024 03:06:44 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t23Xu-0001Qd-2l for emacs-orgmode@gnu.org; Sat, 19 Oct 2024 03:06:43 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id DAEC0240027 for ; Sat, 19 Oct 2024 09:06:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1729321598; bh=WmQnJqHsXcpGieAZEslOwXCEVOGAZfHvZ6R6Hjx/nDM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=TOF4p7Qq3zRhERz90fgG93JmqhGPBa1K1NJqX8n7Bi5IoSpZ4D4StMe0yxKAtNx0V 8xpuSa9wc+3bKZJYKJcuxjp3mAPKZXAs+rWcQd/xyYE770MeliX2XG6fY45vNoF4hw pMBKTCHWFxLxEuM8tgIGTBq3yCsQzZFPHyGZ1GWMJlz7nZepJOjwmU2AQMuRcMuwpb T473DPwNwgyaFlCWvJqkvvzNu5mwoN3yoWeIMTHeV9tYRQRO8m1ewF8gc/hi/2dV/o khibSaD8rgZ1qHJyO9YjRdivtanBuDfI7r8ClCT8lstnlT88PgVxwijX9JuAcuyBOS 1a+TQqyPm4p6Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XVt0Y74C2z6tyr; Sat, 19 Oct 2024 09:06:37 +0200 (CEST) From: Ihor Radchenko To: Visuwesh Cc: org-mode-email Subject: Re: [PATCH] Add yank-media handler for LibreOffice Calc tables In-Reply-To: <87ttdawssj.fsf@gmail.com> References: <87r08i3alo.fsf@gmail.com> <871q0ise9x.fsf@localhost> <87msj53o2o.fsf@gmail.com> <87msj5dx8l.fsf@localhost> <87ttdawssj.fsf@gmail.com> Date: Sat, 19 Oct 2024 07:08:25 +0000 Message-ID: <871q0cy3h2.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.45 X-Spam-Score: -4.45 X-Migadu-Queue-Id: EC2FF8109D X-Migadu-Scanner: mx13.migadu.com X-TUID: ZqyRKJ2IhlKt Visuwesh writes: >> Here is the recipe >> 1. make repro (I tried with the latest Emacs master and with Emacs 29) >> 2. Open test.odt (attached) >> 3. M-x org-mode >> 4. Copy the non-empty cell area >> 5. M-x yank-media app >> 6. Observe encoding problems > > Thanks for the reproducer. I think this might be locale-dependent. I > fail to reproduce on my end with the following locale settings: > > LANG=en_GB.UTF-8 > LC_COLLAGE=ta_IN.UTF-8 > LC_MONETARY=ta_IN.UTF-8 > LC_NUMERIC=ta_IN.UTF-8 > > locale-coding-system = 'utf-8-unix > > I have no idea how to deal with locale issues like this unfortunately. I tested a bit further, and it might not be locale. Maybe it is some LibreOffice version issue or build issue. Below is the DATA passed to yank handler: Debugger entered--entering a function: * org--libreoffice-table-handler(application/x-libreoffice-tsvc #("1\0\11\0002\0\11\0003\0\n\0004\0\11\0005\0\11\0005\0\n\0" 0 24 (foreign-selection application/x-libreoffice-tsvc))) yank-media() As you can see, the data contains \0 characters. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at