DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25058>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25058

Bug in StringUtils.chomp

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |



------- Additional Comments From [EMAIL PROTECTED]  2003-11-30 16:19 -------
Sorry for the short comments, 

I have this example to show why it doesn´t work.



import org.apache.commons.lang.StringUtils;

public class p {
  public static void main(String[] args) {
    String loc = "es_AR";
    System.out.println(StringUtils.chomp(loc, "_"));
    System.out.println(StringUtils.prechomp(loc, "_"));
  }
}

The result of that is:
es_AR
AR

when should be:
es
AR

Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to