From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Hrvoje Niksic Newsgroups: gmane.emacs.bugs Subject: Getting the UCS code point of a character Date: Thu, 16 Oct 2003 16:06:40 +0200 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066313368 29841 80.91.224.253 (16 Oct 2003 14:09:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2003 14:09:28 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 16 16:09:24 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AA8oe-0002dA-00 for ; Thu, 16 Oct 2003 16:09:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AA8oU-00016Q-3u for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2003 10:09:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AA8mm-0000W9-JD for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2003 10:07:28 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AA8m6-0000OG-LP for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2003 10:07:17 -0400 Original-Received: from [213.191.128.133] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AA8m5-0000Mu-Dz for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2003 10:06:45 -0400 Original-Received: from localhost.localdomain (frost [127.0.0.1]) by localhost.localdomain (8.12.9/8.12.9) with ESMTP id h9GE6feO006153 for ; Thu, 16 Oct 2003 16:06:41 +0200 Original-Received: (from hniksic@localhost) by localhost.localdomain (8.12.9/8.12.9/Submit) id h9GE6ex8006151; Thu, 16 Oct 2003 16:06:40 +0200 Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:5990 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:5990 Hello! In my application I need to get the UCS code point of characters found in buffer. What is the recommended way to do that? I noticed that there is an `encode-char' function, but it seems to be restricted to a subset of characters and has a fairly strange API (it accepts a general CCS argument which accepts only one value). My application can handle `encode-char' returning nil for some characters, but I'd like to know if it's considered a "stable" API, i.e. whether it will be removed or replaced in a future version of Emacs.